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


当前回答

在被迫为贫血域对象编写单元测试时,这些对象不过是getter和setter的包(我也是被迫写的):

// zzzzZZZZzzzz....

其他回答

几年前我在。h文件里看到的。

// It may be a hack, but it works.
//I'm sorry, but our princess is in another castle.
private int mousycounter = 0; //Not really a counter
switch(value)
{
   [...]
default:
   ASSERT(**true**); // if this is triggered, something really bad is happening.
}
// (c) 2000 Applied Magic, Inc.
// Unauthorized use punishable by torture, mutilation, and vivisection.

啊,我一直很喜欢这个……