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


当前回答

/**
 * If you don't understand this code, you should be flipping burgers instead.
 */

其他回答

我经常看到这种情况:

// TODO make this work

生产源代码:

// Remove this if you wanna be fired

事实上,有一天我在一些代码上看到了这个,这些代码是在截止日期很急的时候写的。

//This was clearly written under duress

我看到有人对代码的评论:

// This comment is self explanatory.

我猜他是想说“可变的”,但这个错误造成了一个有趣的评论……想想这里的循环逻辑,以及写它的徒劳。

-- Change Log:  Not needed. The code is perfect 'cause I wrote it.
-- If you change it, it will break.

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