Advertisement

joke code

Started by April 19, 2012 04:32 PM
13 comments, last by Servant of the Lord 12 years, 6 months ago

[quote name='Ravyne' timestamp='1335071217' post='4933710']
My favorite is "while(1);"... placed on any random line, about 80 tabs out.

For bonus points, include a comment mocking the intended victim, preferably one calling into question the ethics of his mother around farm animals.


this one is less useful, I think there is a breakpoint or something that you can stop and the editor will show the location of the code.
[/quote]

Depends on whether your intent is to drive them mad, or to deliver a more vicious payload :)

throw table_exception("(? ???)? ? ???");

Guys, don't go into comedy.
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.
Advertisement
oh my god, don't tell me you secretly put that into someone code.. oh.. the debugging...

I've seen worse examples:
// In the middle of a giant header nobody wants to
// look into but that's included about everywhere
#define if(x) if((x) && (rand() & 0x7FFF) != 0x1234)

Good luck debugging that.
Don't pay much attention to "the hedgehog" in my nick, it's just because "Sik" was already taken =/ By the way, Sik is pronounced like seek, not like sick.

Hmm? I don't get it. It looks like code I encounter on a daily basis...

And you're the only programmer on the team!

[size=2](I challenge you all to make a worse joke)

[quote name='fastcall22' timestamp='1334853299' post='4932860']
Hmm? I don't get it. It looks like code I encounter on a daily basis...

And you're the only programmer on the team!

(I challenge you all to make a worse joke)
[/quote]

Altered fastcall22 post
It looks like code I encounter on a daily basis... And I was the lead developer for Windows NT.
[/quote]

This topic is closed to new replies.

Advertisement