Hacker News new | ask | show | jobs
by rickhanlonii 3403 days ago
There are certainly other reasons. For example, I only comment as an admission of failure to express my self in code. Most of the time a better variable name or adding a function with a descriptive name will say the same thing as a comment
1 comments

The comments that matter are the WHY comments. No amount of variable naming will solve that.

When I read your code three years from now, I can still figure out what it does. WHY you're doing the things you do is a different question. And few people leave them. Add them, and you're standing already heads and shoulders above your peers.