Funny code comments
So, how to start ? It’s being said it’s always good to start with a joke. So, here is a collection of funny code comments:
1
| const int TEN=10; // As if the value of 10 will fluctuate... |
1
2
| //When I wrote this, only God and I understood what I was doing
//Now, God only knows |
1
| // if i ever see this again i'm going to start bringing guns to work |
1
| //hack for ie browser (assuming that ie is a browser) |
1
| double penetration; // ouch |
1
2
3
| // no comments for you
// it was hard to write
// so it should be hard to read |
1
| // Magic. Do not touch. |
1
2
| // somedev1 - 6/7/02 Adding temporary tracking of Login screen
// somedev2 - 5/22/07 Temporary my ass |
1
| options.BatchSize = 300; //Madness? THIS IS SPARTA! |
1
2
| # code below replaces code above - any problems?
# yeah, it doesn't fucking work. |
1
| // I will give you two of my seventy-two virgins if you can fix this. |
1
2
3
4
5
6
| /*
after hours of consulting the tome of google
i have discovered that by the will of unknown forces
without the below line, IE7 believes that 6px = 12px
*/
font-size: 0px; |
1
| // batmon.c drives the rastamobile |
1
| // (c) 2000 Applied Magic, Inc. |
1
2
3
4
5
| public GetRandomNumber()
{
// Chosen by a fairly rolen dice
return 12;
} |
Comments like this makes coding more fun
.
http://monster-island.org/tinashumor/humor/opcodes.html
e.g.
BOSO – branch on sleepy operator
HACF – halt and catch fire (actually worked once)
RWD – rewind disk