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


当前回答

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

// yikes

其他回答

我发现了这个:

I'm not sure what I did

//我穿上长袍,戴上巫师帽……

// this comment included for the benefit of anyone grepping for swearwords: shit.

我曾经在一个项目中发现了这样的评论:

// Cabbage fart?

我不知道那是什么意思。还好我的魔方不在写它的人旁边。

用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