1
2
3
4
5
6
7
8
9
10
11
12
13
14
| /*
* OK; before you read the following code know what I am trying to do.
* I needed to get the list of child catagories from the root node so that
* the root node didn't appear in the selection box. But for some stupid
* fucking reason the stupid fucking DBA wont let me access the items using
* indices and I instead have to use their stupid fucking Iterator
* implementation. So there.
*/
$firstList = $this->getRootNode()->getChildren();
foreach ($firstList as $node)
{
$nodes = $node->getChildren();
break; // wtf?
} |
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
2
3
4
5
6
7
8
| /**
* 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.
*/ |
1
2
3
4
5
6
7
8
9
10
| //
// 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
// |
1
| // TODO: Fix this. Fix what? |
1
2
3
| // no comments for you
// it was hard to write
// so it should be hard to read |
1
| // I will give you two of my seventy-two virgins if you can fix this. |
1
| options.BatchSize = 300; //Madness? THIS IS SPARTA! |
1
2
| // I am not responsible of this code.
// They made me write it, against my will. |
1
2
| //Dear future me. Please forgive me.
//I can't even begin to express how sorry I am. |
1
| double penetration; // ouch |
1
| # To understand recursion, see the bottom of this file. |
At the bottom file:
1
| # To understand recursion, see the top of this file. |
1
| //I am not sure why this works but it fixes the problem. |
1
2
| //somedev1 - 6/7/02 Adding temporary tracking of Logic screen
//somedev2 - 5/22/07 Temporary my ass |
1
2
3
4
5
6
7
| /*
* You may think you know what the following code does.
* But you dont. Trust me
* Fiddle with me, and youll spend many a sleppless
* night cursing the moment you thought you be clever
* enough to "optimize" the code below.
* Now close this file and go play with something else. |
1
| // Magic. Do not touch. |
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 |
1
2
| //When I wrote this, only God and I understood that I was doing
//Now, God only knows |
Some more here
Muito bom!
Adicione este que encontrei ano passado:
If 1 > 0 Then
'You deserve it
MsgBox "ASS WIPE!"
End If
Muito bom, acho que vou utiliza-las em futuro próximo.
aehuiaeu
eu fiz uns assim esses dias:
/*
* here be dragons
*
* as vezes dá nullPoiterException por aqui.
* não sei como, não sei porque, mas dá.
* mas não deveria.
*
* RUN TO HILLS, manolo.
*/
Hoje postei dois no Twitter que rachei de rir:
// drunk, fix later
// Magic. Do not touch.
/* This can only happen when SEP is enabled, no need to test “SEP”arately */
- Cerne linux, linha 215, arquivo arch/i386/kernel/vmi.c
// if world whould be perfect we whouldn’t need such function because this is
// non valid situation and it was caused by some very angry dirty nasty bugs
One of the lines in the code I need to maintain:
//Do not touch this! it is automagically doing stuff.
//GO Horse que serve pra funcionar no IE7
WordPress
endif; // if you delete this the sky will fall on your head
Alguns aprecem copiados de: http://stackoverflow.com/questions/184618/what-is-the-best-comment-in-source-code-you-have-ever-encountered
Opa é verdade grande parte consta nesse link, mas na verdade eu digitei os comentários que recebi de um email com várias imagens, provávelmente essas imagens foram retiradas pelo site, grato pela fonte vou fazer relacionamento do post a fonte.
Bom, eu sou famoso por usar uma certa função que salva minha vida quando o bug está impossível de ser resolvido: setAppellationMode(true); – ponho isso e alguns minutos depois (por coincidência ou não) encontro o bug e/ou a solução do problema. Geralmente a implementação é algo como:
public void setAppellationMode(boolean appellationMode) {
// Use a Força, pequeno padawan. A Força Bruta!
return;
}
I’ve found one as well (oracle):
– got no time to apply the official formula — God save us
Kept me giggling for a while – awesome post
found in open source code:
// Here we do all the work
and then completed by me:
// the hell you do! it’s all wrong! we did all the work!
#recursion coment
now I understand what’s recursion
thanks man
LoL
Recursion != Infinite loop.
Mas nenhum bate o /* Faz porra nenhuma */ em um dos items do switch() …
Huaheuhauehauhe muito bom!
To inspirado agora!
Wow very funny stuff, this should see every coder, LOL ;D
I wrote a tiny script to build a fortune file from the stackoverflow “best code comment” post. (a few hundred entries). It would be really great if someone could collect this cool code comments and build a fortune mod officially package. I used it as motd and it totally sweetens my day
script: http://pastebin.com/K5ygA
other funny comments: http://stackoverflow.com/questions/184618q3x
Parabens pelo artigo !
Eu gostei muito de comentario “double penetration; // ouch” …
No futuro, vou dar mais attenção nos comentarios das arquivas que eu vou mexer !
Priceless !
class Snake {
Snake() { // Boa constructor
}
}
Haha those were really funny comments.
// total_hours_wasted_here = 16
LoL epic
Awesome ! That made my day, we want moar
http://cia.svn.sourceforge.net/viewvc/cia/trunk/citizen-intelligence-agency/etc/radar-config.xml?revision=4526&view=markup
252
253
254
255
256
257
258
259
260
261
262
263
абассаца
Hahaa!!!
Thx, that saved my day
My favorite:
stop(); // Hammertime!
cool
#define true false
Hilarious
HaHa,
Who says writing code is dull ???
“double penetration;”… haha
I remember some “sex” variable in some code.
But try to write clean code to figure out cause cause later you’ll say
“//Now, God only knows”
Have some fun while you’re coding !!!
my contribution, a SQL Server Proc:
SP_Check_Anal
I just about fell out of my chair when I read the “Rick-rolled” comment, absolutely brilliant find!
LOOOOOOOOOOOOOL
in a weak code sometimes it’s true!!!!!
//I am not sure why this works but it fixes the problem.
this wins the internet today!
// If the function exists, run it, otherwise, don’t do anything (like Jeff).
too funny.
In a PL/I program many moons ago:
DCL Kludge CHAR(1) STATIC INIT(‘~’); /* this stupid linker fails to iniitialize the first single-byte literal in a linked overlay. I you want some other character than the tilde to seem randomly broken, change the value in ticks */
Here is one more funny code confessions
http://thedailywtf.com/Articles/Davecpp.aspx
funny list
))
THIS IS SPARTA!:))))
so funny!
// we have tried everything…
throw kitchen_sink;
In Spip Agora :
// TODO : c quoi ce vieux residu ?
haha funny !!
// To understand recursion, one must first understand recursion.
This post is a clone… sorry
http://stackoverflow.com/questions/184618/what-is-the-best-comment-in-source-code-you-have-ever-encountered
seems it’s Chinese English.
This just made my day. Hilarious