Coding Practice: When should I check in commented code?
Code that is commented out should not be checked into TFS.
Quote:
“When you see commented-out code, delete it! Don’t worry; the source code control system still remembers it. If anyone really needs it, he or she can go back and check out a previous version.”
– Robert Martin
Application:
Commented out code becomes irrelevant within days of being checked into TFS, and then it just becomes an impediment to the readability of your code. Don’t check commented code into TFS.
References:
Clean Code: A Handbook of Agile Software Craftsmanship
7 Tips On Writing Clean Code
Like this:
Like Loading...
Related
About Chris VanHoose
Principal Software Architect at CT Lien Solutions
Coding Practice: Commenting Out Code
Coding Practice: When should I check in commented code?
Code that is commented out should not be checked into TFS.
Quote:
“When you see commented-out code, delete it! Don’t worry; the source code control system still remembers it. If anyone really needs it, he or she can go back and check out a previous version.”
– Robert Martin
Application:
Commented out code becomes irrelevant within days of being checked into TFS, and then it just becomes an impediment to the readability of your code. Don’t check commented code into TFS.
References:
Clean Code: A Handbook of Agile Software Craftsmanship
7 Tips On Writing Clean Code
Share this:
Like this:
Related
About Chris VanHoose
Principal Software Architect at CT Lien Solutions