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


当前回答

//There can Only Be one HIGHLAN....err..Singleton
public class SomeSingleton
{
...
}

其他回答

不是在代码中,而是在相关的bug跟踪系统中:

这不可能是我代码中的bug。我非常小心地编码。

从泄露的Win2K源代码:

//这次黑客入侵的规模堪比国家债务的规模。

// this error could never happen

然后,客户打电话说他看到一条错误消息说"这个错误永远不会发生"

// Replaces with spaces the braces in cases where braces in places cause stasis 
   $str = str_replace(array("\{","\}")," ",$str);

在一个生成HTML的旧perl脚本中找到:

# I would be _very_ brain farting if I said this code didn't need reviewing.
# It will make babies cry, and hair grow on your back, so please don't use it