Top funny source code comments
Moderator: Moderators
- sirwilliam
- Resident Poop Expert
- Posts: 7226
- Joined: Mon Aug 01, 2005 1:27 pm
- Location: The Wild Serengeti Suburbs
Top funny source code comments
2004 SG Model A PearlBlackObsidian (RIP)
2008 SG Model D BlueRallyWorld
"When I get sad, I stop being sad and be awesome instead. True story." -Barney Stinson
"Nothing shuts my pie-hole but pie." -Shawn Spencer
2008 SG Model D BlueRallyWorld
"When I get sad, I stop being sad and be awesome instead. True story." -Barney Stinson
"Nothing shuts my pie-hole but pie." -Shawn Spencer
- Sabre
- DCAWD Founding Member
- Posts: 21432
- Joined: Wed Aug 11, 2004 8:00 pm
- Location: Springfield, VA
- Contact:
Re: Top funny source code comments
Some of my favorites from there:
I've seen a ton (and written a couple) in code every from the BSD Kernel to bash scripts... It's like geocaching, only with less exercise
Funny story here. More examples here.
Code: Select all
// if i ever see this again i'm going to start bringing guns to work
/**
* For the brave souls who get this far: You are the chosen ones,
* the valiant knights of programming who toil away, without rest,
* fixing our most awful code. To you, true saviors, kings of men,
* I say this: never gonna give you up, never gonna let you down,
* never gonna run around and desert you. Never gonna make you cry,
* never gonna say goodbye. Never gonna tell a lie and hurt you.
*/
//
// Dear maintainer:
//
// Once you are done trying to 'optimize' this routine,
// and have realized what a terrible mistake that was,
// please increment the following counter as a warning
// to the next guy:
//
// total_hours_wasted_here = 16
//
options.BatchSize = 300; //Madness? THIS IS SPARTA!
//Dear future me. Please forgive me.
//I can't even begin to express how sorry I am.
double penetration; // ouch
//somedev1 - 6/7/02 Adding temporary tracking of Logic screen
//somedev2 - 5/22/07 Temporary my ass
Exception up = new Exception("Something is really wrong.");
throw up; //ha ha
//When I wrote this, only God and I understood that I was doing
//Now, God only knows
/**
* Always returns true.
*/
public boolean isAvailable() {
return false;
}
#define TRUE FALSE //Happy debugging suckers
/* You are not meant to understand this */
// I don't know why I need this, but it stops the people being upside-down
x = -x;
mov si, pCard ; captain?

Sabre (Julian)

92.5% Stock 04 STI
Good choice putting $4,000 rims on your 1990 Honda Civic. That's like Betty White going out and getting her tits done.

92.5% Stock 04 STI
Good choice putting $4,000 rims on your 1990 Honda Civic. That's like Betty White going out and getting her tits done.
- complacent
- DCAWD Founding Member
- Posts: 11651
- Joined: Sun Aug 29, 2004 8:00 pm
- Location: near the rockies. very.
- Contact:
Re: Top funny source code comments
some of those are really, really funny. 

colin
a tank, a yammie, a spaceship
i <3 teh 00ntz
a tank, a yammie, a spaceship
i <3 teh 00ntz
-
- DCAWD Groupie
- Posts: 1659
- Joined: Fri Nov 19, 2004 7:00 pm
- Location: washington, dc
- Contact:
- complacent
- DCAWD Founding Member
- Posts: 11651
- Joined: Sun Aug 29, 2004 8:00 pm
- Location: near the rockies. very.
- Contact:
Re: Top funny source code comments
Code: Select all
// Replaces with spaces the braces in cases where braces in places cause stasis
$str = str_replace(array("\{","\}")," ",$str);
and
Code: Select all
doRun.run(); // ... "a doo run run".
colin
a tank, a yammie, a spaceship
i <3 teh 00ntz
a tank, a yammie, a spaceship
i <3 teh 00ntz
- sirwilliam
- Resident Poop Expert
- Posts: 7226
- Joined: Mon Aug 01, 2005 1:27 pm
- Location: The Wild Serengeti Suburbs
Re: Top funny source code comments
^^you sure that wasn't a Shawn Cassidy reference?complacent wrote:is probably the funniest biggie smalls reference i've ever seen.Code: Select all
doRun.run(); // ... "a doo run run".

I am pretty sure my sister had a crush on him.

2004 SG Model A PearlBlackObsidian (RIP)
2008 SG Model D BlueRallyWorld
"When I get sad, I stop being sad and be awesome instead. True story." -Barney Stinson
"Nothing shuts my pie-hole but pie." -Shawn Spencer
2008 SG Model D BlueRallyWorld
"When I get sad, I stop being sad and be awesome instead. True story." -Barney Stinson
"Nothing shuts my pie-hole but pie." -Shawn Spencer