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

Exactly. I use comments either when some inherent complexity is at play or when I've written seemingly weird code and need to make it easier for myself and others to understand why it's hacky.

I generally try to avoid the latter case, but sometimes, especially when I can't afford to refactor, I just do it, and in such cases having comments is just better than having nothing.



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

Search: