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


当前回答

var something TBoolean; //Pickins

其他回答

// Catching exceptions is for communists

来自Mike Duncan在SQLite上的页面。

// Sorry dirty code
<cftry>
...code...
<cfcatch>
  <!--- Gobble --->
</cfcatch>
<cftry>

我公司的代码库里到处都是。它是ColdFusion,它会忽略错误。

在给一个朋友看了这篇来自《Coding Horror》的文章几个小时后,我看到了他对代码的评论:

// valdez先生是一个暴力的精神病患者。别惹他生气。

public boolean isDirty() {
    //Why do you always go out and
    return dirty;
}