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


当前回答

(A bunch of code that's really weird looking)  //Kludge.

其他回答

try
{
...
}
catch(Exception ex)
{
//if this happens the world is going to end...
}

现在猜猜发生了什么……

当被问及什么是“最好的评论”时,我们的回答都是我们能找到的最糟糕的评论,这充分说明了我们的职业……

// This code was written by a genius so don't try to understand it with
// your tiny little brain.

这实际上是我在实现原型转换为实际代码时所做的:

// Abandon all hope you who needs to debug this

是的,有比我聪明的人在之后重构了代码(它必须有一个好的结局)。

我经常看到这种情况:

// TODO make this work