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

When I'm writing a block of code, I tend to do something like this. I pseudo code the algorythm and then write the code.

I tend to remove my comments though and they normally aren't 100% correct by the time I'm done and have refactored (heck, a lot of times the comments become the code/called method names).

And then you assume that the comments are kept around/up to date when a bug is fixed or an enhancement is added.



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

Search: