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


当前回答

virgin = 0;     /* you're not a virgin anymore, sweety */

其他回答

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

/***************************************************************************/
/*  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.                             */
/*                                                                         */
/* ...                                                                     */

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

这是我今天重构一些代码时发现的一条评论

if( year < 100 ): year += 2000 #lol, Y2K
catch
{     
    // you’re fucked
    // write out the file somewhere and start screaming “Connection down! Connection down!”
}
#pragma region Crap that is kept for temporary reasons

    //  Huge chunk of commented code

#pragma endregion

刚刚在一些Actionscript中发现了这个,我必须更新…

/*
* spaghetty code in this module.
* hardcoded variables for load paths for the content window.
* Needs (vast) improvement.
*/

..大:(