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


当前回答

不是代码注释,而是SVN在同一个文件上提交注释:

第一次提交(在测试人员返回结果后,再进行数十次提交):

Squashed some IPR mod bugs. The were big and juicy ones, too.

2日提交:

Squashed some more mod bugs. Those are some nasty bugs, them mod bugs...

3rd:

Squashed some more mod bugs. They are like cockroaches: they'll live through a nuclear war.

4th:

Squashed some more John bugs. They too are like cockroaches: they appear anywhere John goes. Wait. That doesn't sound right.

5:

Same John bug. It didn't die, just played 'possum.

是的,我厌倦了"修复bug"

其他回答

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

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

这是显而易见的?

/** Logger */
private Logger logger = Logger.getLogger();
const int TEN=10; // As if the value of 10 will fluctuate... 
/* This is O(scary), but seems quick enough in practice. */ 

后面是四个嵌套的for循环

我只是发表了这样的评论:

// this control (Resistance) is FUTILE!