Hacker News new | past | comments | ask | show | jobs | submit login
How to comment your code better (particletree.com)
6 points by sudeepjuvekar on March 9, 2008 | hide | past | favorite | 1 comment



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.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: