Top funny source code comments

The place for technology related posts.

Moderator: Moderators

Post Reply
User avatar
sirwilliam
Resident Poop Expert
Posts: 7226
Joined: Mon Aug 01, 2005 1:27 pm
Location: The Wild Serengeti Suburbs

Top funny source code comments

Post by sirwilliam »

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
User avatar
Sabre
DCAWD Founding Member
Posts: 21432
Joined: Wed Aug 11, 2004 8:00 pm
Location: Springfield, VA
Contact:

Re: Top funny source code comments

Post by Sabre »

Some of my favorites from there:

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?
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.
Sabre (Julian)
Image
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.
User avatar
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

Post by complacent »

some of those are really, really funny. :lol:
colin

a tank, a yammie, a spaceship
i <3 teh 00ntz
schvin
DCAWD Groupie
Posts: 1659
Joined: Fri Nov 19, 2004 7:00 pm
Location: washington, dc
Contact:

Re: Top funny source code comments

Post by schvin »

good ones :)
2004 impreza outback
1964 beetle
User avatar
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

Post by complacent »

Code: Select all

// Replaces with spaces the braces in cases where braces in places cause stasis
   $str = str_replace(array("\{","\}")," ",$str);
^ is very clever.


and

Code: Select all

doRun.run();  // ... "a doo run run".
is probably the funniest biggie smalls reference i've ever seen.
colin

a tank, a yammie, a spaceship
i <3 teh 00ntz
User avatar
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

Post by sirwilliam »

complacent wrote:

Code: Select all

doRun.run();  // ... "a doo run run".
is probably the funniest biggie smalls reference i've ever seen.
^^you sure that wasn't a Shawn Cassidy reference?

Image

I am pretty sure my sister had a crush on him. :lol:
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
Post Reply