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

It depends on how much you must work with other people on the code.

Sometimes it's helpful to think about your code as if you are writing it for other people -- which you are, even if that person is you in the future. The choices you make can result in the difference between a love letter and hate mail, even if it does the same thing in the end.

I kind of like the idea of emphasizing the comments in this way, turning the source file into a document, but I have never personally used anything like it. So it feels both kind of interesting/attractive, but also weird.



Interesting. Considering that, I think that it is a fundamental problem of current programming languages that you cannot address both the computer and the human in the language itself. (comments are an escape mechanism)


and my comments are sometimes about what was tried but didn't work, or alternate ideas that were considered, along with commented out code and examples.




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

Search: