Monday, January 13, 2014

JSLint finds code comments ghetto.

"Unexpected comment." it says. I have worked with others which feel code comments are undesirable as:

  1. they will not be maintained
  2. the code should just be readable if it is good

 
 

I don't know that they are wrong, but should I clean away comments from existing code? (I participated in a book club on Bob Martin's Clean Code when I worked at Headspring. There was a chapter on comments which more or less told you not to use them.)

No comments:

Post a Comment