By DigitalDuffman
via krissteele.net
Published: Jul 27 2008 / 14:10
Why it's okay to use comments, even though the man will tell you it's wrong.
By DigitalDuffman
via krissteele.net
Published: Jul 27 2008 / 14:10
Comments
joecoder replied ago:
Dude, use unit tests instead of comments to determine if your code works correctly. The latter approach will land you that job at Wendy's sooner than you expect.
This whole debate seems to boil down to a preference for good readable code with nonredundant (DRY) useful comments versus bad, or mediocre or even good code with extensive, redundant and possibly inaccurate comments.
It's not a black/white debate of comments versus no comments. That's a strawman that's useful for generating blog rants but not of much practical benefit.
Tantalus replied ago:
It's sheer lunacy to think that there is never a time when code has to be commented to understand what it's supposed to be doing.
Voters For This Link (17)
Voters Against This Link (2)