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

This. And in particular if there are multiple ways to do it, and you had to choose a particular way for a reason.

Comments should explain the decision process (if one was necessary) that lead to this variant. Because if there's no comment explaining it, the next developer looking at it will say "oh, but it's much simpler if I just do it that way", and will run into trouble because he didn't realize the pitfalls.



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

Search: