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


当前回答

一些来自Linux内核的代码:

/* Sun, you just can't beat me, you just can't.  Stop trying,
* give up.  I'm serious, I am going to kick the living shit
* out of you, game over, lights out.
*/

-

/* 2,191 lines of complete and utter shit coming up... */

-

#if 0 /* XXX No fucking way dude... */

其他回答

在一个巨大的800行'switch'语句中,在中间的某处:

// Joe is sorry

几百行之后……

// Harry is sorry too
// Bad Christian, No cookie

这里的Cookie不是指浏览器Cookie

/*************************** Drag And Drop Section - Start (you should be me to mess with this section)*********************************************/
-- Change Log:  Not needed. The code is perfect 'cause I wrote it.
-- If you change it, it will break.

我正在检查一些代码注释,以检查它们是否有意义,并看到上面的一行。

If you have reached this part in the code, then this program sucks.