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

In my experience, the density of comments is inversely proportional to the extent to which they help the reader to understand how the code works.

On my current project, it also tends to be inversely proportional to maintainability. Never send slashes and asterisks to do a function declaration's job.



Your problem is poor comments, not too many comments.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: