Code comments hurt instead of help


Written on Thursday, September 09, 2010 by
Remember when I said "I’ve never seen a block of code that actually needed a comment. Ever."? Here's a great example of what I'm talking about: There isn't one comment in there that adds value to this code. In fact there are two that are completely and utterly incorrect about what this code does.
Back

Let's talk about this

 


The opinions expressed herein are my own and do not represent my employer's view in any way.


Creative Commons License