What is the best comment in source code you have ever encountered?
31–40 of 50 posts
Re: What is the best comment in source code you have ever encountered?
#32 // 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?
#33Found years ago in Adobe's ActionScript core classes.
Re: What is the best comment in source code you have ever encountered?
#34//
Re: What is the best comment in source code you have ever encountered?
#35There 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...
Re: What is the best comment in source code you have ever encountered?
#36(a PNG-fix for IE6)
// PLEASE READ:
// Absolutely everything in this script is SILLY. I know this. IE's rendering of certain pixels doesn't make sense, so neither does this code!
Re: What is the best comment in source code you have ever encountered?
#37$html = parse($html); // the function so nice, he ran it twice
Re: What is the best comment in source code you have ever encountered?
#38I 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.
Re: What is the best comment in source code you have ever encountered?
#39stop(); // Hammertime!
Re: What is the best comment in source code you have ever encountered?
#40// This code is pretty dense so I recommend you read the documentation first
Some months later I found a follow-up comment left by a fellow dev:
// Or you could just give up now