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


当前回答

#ifdef TRACE
#undef TRACE     /* All your trace are belong to us. */
#endif
#define TRACE ....

其他回答

/* My lawyer told me not to reveal */
/*************************** Drag And Drop Section - Start (you should be me to mess with this section)*********************************************/

有一些旧的javascript代码,写得很好。然后是一条评论线

// and there is where the dragon lives

接下来是一个功能,4个人花了一天时间来理解它在做什么。最后我们意识到它根本没用,什么都没有。

// no comments for you
// it was hard to write
// so it should be hard to read
// sometimes I believe compiler ignores all my comments