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

Self-documenting code is not a judgment that you can pass on your own code: that's the role of code review.

95% of the code you write day to day should be clear enough that someone who didn't write it can understand it on first read (the reviewer). If they can't, you probably need to rewrite the code so that it is clearer, not comment it. That's what self-documenting code is.

Instances where the code needs comments to be understandable are rare.



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

Search: