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


当前回答

//When I wrote this, only God and I understood what I was doing
//Now, God only knows

其他回答

我最近看到了这个:

//你刚刚输了比赛

如果你不知道游戏是什么: http://en.wikipedia.org/wiki/The_Game_ (mind_game) (这很傻,但在某种程度上很有趣)

//迭代一次 美元我+ +;

不幸的是,它是我的,在我的“必须评论一切”阶段。

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

A:很简单——就是那个帮我解决了我当时遇到的任何问题的人,而且有很多这样的人!

其次是那些帮助指导新开发避免已知陷阱的方法。

(A bunch of code that's really weird looking)  //Kludge.

不是注释,而是属性

[ThereBeDragons]

还有一个是我在IHttpHandler的实现中看到的

//What is this?
public bool IsReusable
{
    get{return false;}
}