0
2

[–] botbot 0 points 2 points (+2|-0) ago  (edited ago)

#define POPE_IS_CATHOLIC 1

if (POPE_IS_CATHOLIC){ code }

0
2

[–] starbuck 0 points 2 points (+2|-0) ago  (edited ago)

From the Linux kernel source code

https://github.com/torvalds/linux/blob/de182468d1bb726198abaab315820542425270b7/include/math-emu/quad.h#L28-L30

28 #if _FP_W_TYPE_SIZE < 32 
29 #error "Here's a nickel, kid. Go buy yourself a real computer." 
30 #endif 

0
0

[–] kuda ago  (edited ago)

/**

*MAGIC STARTS HERE, DO NOT TOUCH

*

*/

0
3

[–] HentaiOjisan 0 points 3 points (+3|-0) ago 

I like this one:

// sometimes I believe the compiler ignores all my comments

And this one;

#define TRUE 0 // Happy debugging suckers!
#define FALSE 1

0
1

[–] ColaEuphoria 0 points 1 point (+1|-0) ago 

TODO:

It always cracks me up.

0
2

[–] shmuklidooha 0 points 2 points (+2|-0) ago 

Not really a comment, but when I was modding a game, the original maker called the variables for time and date $whatTimeIsItScoob and $likeNowScoob.

0
1

[–] trytohurtme 0 points 1 point (+1|-0) ago  (edited ago)

There is a music lyric website aggregator software called LyricJam. It scrapes lyric content from a variety of sites. The scraper base class is called ScrapeJam. Here's the comment for the class:

https://github.com/ss23/Lyrics-Database/blob/dev/Scrapers/ScrapeJam.py#L47

0
10

[–] Unleeb 0 points 10 points (+10|-0) ago  (edited ago)

I have two that come to mind:

First one was a piece of software used to simulate some military hardware interface. Since I do not have access to the code anymore, this is a recreation from memory:

// The following code is sub-par. We know. There have been several
// attempts to improve the code, but all attempts have failed. To warn
// future brave souls, increase the counter when you admit defeat.
//
// Defeated souls count: 17
...

And another one, which I merely have observed on the Internet (Edit: As pointed out by Enemby; this one is from xkcd):

int random() {
    return 4; // chosen by fair dice roll; guaranteed to be random
}

0
2

[–] Enemby 0 points 2 points (+2|-0) ago 

the 2nd one is from xkcd.

0
0

[–] Unleeb ago 

How could I not remember that?!

load more comments ▼ (7 remaining)