Live data from Hacker News

How to comment your code better

particletree.com

1–3 of 3 posts

Re: How to comment your code better

#2
Definitely try to write your code in self documenting form. A function name that makes it clear what the function does is better than a comment. Chances are comments start to rot very quickly as other programmers updating code are likely not to touch comments, or to copy and paste something and take a comment out context.

Re: How to comment your code better

#3

Definitely try to write your code in self documenting form. A function name that makes it clear what the function does is better than a comment. Chances are comments start to rot very quickly as other programmers updating code are likely not to touch comments, or to copy and paste something and take a comment out context.

[deleted]