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

I couldn't agree more - and think it is asinine to tell developers to not comment code; most of the comments I write, are for me as much as for the next person who works on it. I find them invaluable.

Recent contract at a big Fortune50 company, and they forbid developers from using comments - "any code that you think needs some explanation should be put in a separate readme file in a 'docs' directory off of the root" - how can that be better, or more useful, than a couple of lines of comments right above the code in question?

They didn't want us to use comments, because they were afraid the code would change, and the comments would become out of date - so put those comments in a separate file, that almost nobody will remember to read, much less update, and that would solve the problem.

You can't make this stuff up, utter insanity.



Heh, now imagine that knowledge is not in README files, but in a certain popular slow WYSIWYG SaaS document product.




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

Search: