Live data from Hacker News

What is the best comment in source code you have ever encountered?

stackoverflow.com

31–40 of 50 posts

Re: What is the best comment in source code you have ever encountered?

#32
My favorite of all time was

  // Michael, this is brilliant!
Yeah, somebody else had complimented a change I'd made a few months earlier. I still maintain that code occasionally, and it's the only comment left I didn't write myself. I leave it there just to get that little ego boost every couple of years.

Re: What is the best comment in source code you have ever encountered?

#35
post #20

There are lost of great ones. I especially liked this practical comment: From the SO answer: This seems to stop morons from messing my code... // Autogenerated, do not edit. All changes will be undone. http://stackoverflow.com/questions/184618/what-is-the-best-c...

Then someone who's perhaps a bit too clever for his own good can introduce a new script into the build process so it makes some changes after the file is generated.

Re: What is the best comment in source code you have ever encountered?

#38
post #17

I hate the way SO only remembers you for a week or two, so when you return, you have to login, going to a separate screen and so on. Why do they have to make it so hard? What's the advantage in forcing frequent logins? Yeah, I know I should find some other StackExchange site, go there, create an account there, login there, and post this complaint there - but you know, that's just more of the same problem.

There was a recent forced logout on all stack* sites due to changes in the way cookies are handled. If you haven't visited in a while, that could be the cause of it.
Post reply on HN