Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wouldn’t support a no-comment policy, but I’ve wasted a lot of time thanks to misleading comments.


Notices a kindred spirit

You get it. I get it. Unfortunately every intro class inculcates generous commenting, a "best practice" further promoted by corporate proceduralists and mediocre programmers who inexorably become managers.

A comment longer than 160 characters is always weak-sauce justification for logic written awkwardly.


For the most part comments I appreciate are something like "the obvious thing here is xyz, but we can't do that because of this goofy limitation of software we're integrating with."


You have to assume that comments are out of date, then it's easier to make use of them.


But out of date in which way? It could be anything from some extra cases to literally the opposite of what the comment says to the code has changed so much it’s not even clear what the comment refers to anymore.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: