你遇到过的源代码中最好的注释是什么?


当前回答

多年前,我遇到了这样一个问题:

/***************************************************************************/
/*  deep wizardry. do not touch.                                           */
/*                                                                         */
/*  no seriously.  XXXXXX I'm looking at you. If you screw with this again */
/*  I will kill you with my swingline stapler.                             */
/*                                                                         */
/* ...                                                                     */

然后描述了一个特别复杂的算法。

其他回答

... 或者去死//婊子

options.BatchSize = 300; //Madness? THIS IS SPARTA!
catch (Domain.ConcurrencyException)
{
    // somebody changed it between the time we loaded it and now.
    // weird, huh?
}

我只是发表了这样的评论:

// this control (Resistance) is FUTILE! 
/**
 * Hexadecimal digit
 */
protected $version = -1;