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


当前回答

// this error could never happen

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

其他回答

用VB写的很好。我今天早上跑进了NET,得到了一个笑声…

''' <summary>
''' Represents an exception that was logged.  Since System.Exception implements IDictionary, it can't be
''' serialized, so I had to write this.  Pretty fucking stupid thing to have to do, System.Exception should
''' be serializable right out of the box, IMHO.
''' </summary>
''' <remarks></remarks>
Public Class LogException

一个奇怪而恰当的有趣错别字:

断言(0);//永远不要在这一点上犯错

高斯林的Emacs源代码中的ascii艺术头骨和交叉骨骼(这里很难重现)(警告说他编写的超热屏幕管理包不容易理解)。

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

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

// THE LOOP THAT DO EVERYTHING!!!!!!!