Today I received the mail with subject line as above.
I want to share that with you all
1.
/// <remarks>
/// The point of this is to work around his poor design so that paging will
/// work on a mobile control. The main problem is the BindCompany() method,
/// which he hoped would be able to do everything. I hope he dies.
/// </remarks>
2.
// 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.
// Magic. Do not touch.
4.
return 1; # returns 1
5.
/* This is O(scary), but seems quick enough in practice. */
6.
/*
* 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.
*/
7.) and here comes my favourite......
//When I wrote this, only God and I understood what I was doing
//Now, God only knows
Please share if you could have written some code comment like that.
It's funny from a third party point of view. Having encountered code like this -- it is far from funny. Generally, it means... the code is complex. the code is poorly written. the code barely works. the code is not documented. etc...
Hey Henry,
Jokes apart,
@Having encountered code like this -- it is far from funny. Generally, it means... the code is complex. If we look the other way round,yes,providing simple solution is real deal
Well ..such comments are harldy entertained
I found these comments on a common library application, made by an architect
/**
* You need to set provider name before accessing this. Dont ask me why it is so !
*/
/**
* This should now work eeesshshhuppp !
*/
I know this is meaningless drivel and all but I am not joking about those comments. The code by itself was not bad and it was fun reading the comments.
I found this type of comment in one of the site I was working on (in a js file)
/* Who wants some whiskey? I want it!! Here you go!
Woo Hoo, amazing whiskey */
And after that all the variable names and function names had whiskey in them. One of the variable was amazingWhiskey. There were a lot of other comments like this one but they were kinda offensive so ...
Ankit Garg wrote:I found this type of comment in one of the site I was working on (in a js file)
/* Who wants some whiskey? I want it!! Here you go!
Woo Hoo, amazing whiskey */
And after that all the variable names and function names had whiskey in them. One of the variable was amazingWhiskey. There were a lot of other comments like this one but they were kinda offensive so ...
One of my friend got screwed because of this. He used to send SMSs to friends using 160by2 site. Since he didn't wanted to keep that site open for too long (since it was not allowed in the office), so he used to type his SMS in the code and used to copy paste it into the site and send it. But once he forgot to delete one SMS from the code and submitted the code. When his supervisor found that SMS, he was called by the boss and scolded. Now he cut pastes his SMSs (people never quit )...
Kashyap Hosdurga
Ranch Hand
Joined: Sep 19, 2005
Posts: 83
posted
0
/* The below lines are deleted by XXXXX*/
Raghavendra nandavar
Ranch Hand
Joined: Jun 26, 2005
Posts: 231
posted
0
One of my favourites which I saw in one of the applications: