You all know how programming can be boring and time consuming sometimes, so why don’t we explore the fun part of it today ? I saw in the past an article about something like “the funniest comments in the code that you encountered” or something similar, and I told myself “hey, this could be a good article, to eliminate the daily stress for some readers”, so here we are.
Let’s laugh a bit…
I will present you some funny code comments that I found over the internet. This will make your day, I guarantee. So, let’s start:
1) Now, that’s a christian ! 🙂
1 2 |
//When I wrote this, only God and I understood what I was doing //Now, God only knows |
2) Yes, to all of them…
1 2 3 |
// I dedicate all this code, all my work, to my wife, Darlene, who will // have to support me and our three children and the dog once it gets // released into the public. |
3) At least he is honest 🙂
1 |
// drunk, fix later |
4) I’ve been there
1 |
// Magic. Do not touch. |
5) This guy was seriously cursed, I know it!
1 |
define TRUE FALSE //Happy debugging suckers |
6) Nobody cares !
1 2 3 |
Catch (Exception e) { //who cares? } |
7) What the…
1 2 3 4 5 6 |
/** * Always returns true. */ public boolean isAvailable() { return false; } |
8) Oh, he shure knows what he did, trust him…
1 2 3 4 5 6 7 8 |
/* * You may think you know what the following code does. * But you dont. Trust me. * Fiddle with it, and youll spend many a sleepless * night cursing the moment you thought youd be clever * enough to "optimize" the code below. * Now close this file and go play with something else. */ |
9) Star wars addict
1 |
long long ago; /* in a galaxy far far away */ |
10) I love the honesty
1 2 |
//This code sucks, you know it and I know it. //Move on and call me an idiot later. |
11) Yo, I heard you like comments :))
1 |
/////////////////////////////////////// this is a well commented line |
12) Story of my life
1 |
// I am not sure if we need this, but too scared to delete. |
13) Yes, the boss told me to do this…
1 2 |
// I am not responsible of this code. // They made me write it, against my will. |
14) I know the feeling
1 2 |
//Dear future me. Please forgive me. //I can't even begin to express how sorry I am. |
15) This guy keeps everything for him
1 2 3 |
// no comments for you // it was hard to write // so it should be hard to read |
16) Harry Potter, is that you ?
1 |
//I put on my robe and wizard hat and this resulted |
Personally I like the christian one 🙂 . Comment bellow what you think!
Let’s laugh a bit…