in reply to Commented out production code?

I think commented out code is a bad idea. Typically, it's done because a company doesn't have a proper version control system in place and commented out code makes it "easy" to back up to previous versions. Comments, in general, should be explaining why something is done, not how. If you have a particularly tricky section of code, commenting the how for that section may be appropriate. Commented out code fits neither reason and is just clutter.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

  • Comment on (Ovid) Re: Commented out production code?