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


当前回答

'this next if statement - just how it is. don't try to understand it because you won't. :)

这就是工作保障。

其他回答

//too much log will kill you

这个评论是我自己写的,当降低一些日志的优先级时,否则会写数百MB的垃圾,严重削弱应用程序的性能。

//你不需要理解这个

经典。

# To understand recursion, see the bottom of this file 

在文件的底部:

# To understand recursion, see the top of this file

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

// Abandon all hope you who needs to debug this

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

简单但有效的注释,在一些不太安全的c++代码之前

// yikes