DCSIMG
What is the best comment in source code you have ever encountered? - Shai Raiten

Shai Raiten

 Subscribe

What is the best comment in source code you have ever encountered?

What is the best comment in source code you have ever encountered?

Spotted on the web:

1. /// <summary>
    /// Class used to work around Richard being a fucking idiot
    /// </summary>
    /// <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.//When I wrote this, only God and I understood what I was doing
   //Now, God only knows

Posted: May 03 2009, 09:55 AM by shair | with 21 comment(s)
תגים:

Comments

Twitted by rohansingh said:

Pingback from  Twitted by rohansingh

# May 4, 2009 7:58 AM

ReBitting said:

I migliori commenti di sempre

# May 4, 2009 1:38 PM

Gilad Lavian said:

HILARIOUS!!!

# May 4, 2009 3:31 PM

arwen_h said:

for sure no.3!!!!!!!

once i had to retrieve datas from some DSP boards, and these had no sense. i had to debug firmware and software for hours, then i found:

*) on DSP

//don't touch

data = data * 100;

data.sendCAN()...

*) on software

data.readCAN()..

//@dude: don't know why, but it works. don't touch it

data = data /100;

# May 5, 2009 10:01 PM

Gary Howlett said:

// The following is a red pen

Pen redPen = New Pen(Color.Black);

I say no more!

# May 7, 2009 11:15 AM

Web Design Jersey said:

Some good ones here; none to add of my own at present (without making 'em up), but have seen some funny ones in the past.

Always makes me smile. And faintly wonder.. why??

# May 12, 2009 2:27 PM

Dwayne Macie said:

Thank you for this site, such as multi information.I! Thank you!,

# July 3, 2009 9:43 AM

joan norman said:

r5q2Lv I will go to you.,

# July 8, 2009 5:19 PM

Juliana Williams said:

rceHM7 Oh hell yeah� no graphical smilies around here.,

# July 20, 2009 1:55 PM

Brian Berge said:

Hi can someone please translate for me thanx,

# July 21, 2009 2:51 AM

UjSJKVwSeyQigkPiI said:

ljNpoH dyn.txt:20:40

# July 22, 2009 11:01 PM

Marla Stone said:

IXhQ05 Thank you for this site, such as multi information.I! Thank you!,

# July 25, 2009 9:55 AM

Nathan Myers said:

R6uVtj what gives you that idea?,

# July 25, 2009 9:55 AM

michael balmadres said:

sSF5ur Hi can someone please translate for me thanx,

# July 25, 2009 11:10 PM

Anthony Watts said:

BLPFWj Thank you! I liked the article! I love how you write beautifully.,

# July 26, 2009 12:35 PM

Joy Daniel said:

great tips. I enjoyed reading this,

# July 31, 2009 9:55 AM

Watch Metheor Shower said:

Very nice.

I could tell you similiar story.

Will you look at metheor shower this night?

I read it will be great show.

# August 12, 2009 6:52 PM

gapedews said:

hmm... strange text :))

# December 12, 2009 10:13 PM

Japan Bbs Sports said:

uh.. bookmarked text )

# December 23, 2009 10:33 PM

Pymnpymnbealp said:

Find a new date for the new year.

Adult Friend Finder is the world's oldest, biggest adult dating site. They know how to hook you with a new partner just when you need it.

See for yourself at http://katy.xmatch.com.

# December 29, 2009 1:02 PM

MrBarns said:

There's good info here. I did a search on the topic and found most people will agree with your blog. Keep up the good work mate!

# February 1, 2010 8:54 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: