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


当前回答

//休斯顿,我们有麻烦了

其他回答

不是代码注释,而是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"

我刚刚在一些遗留代码中发现了这个..

'CANNOT JUST QUIT!

不是一个评论,而是一个goto标签

ICantBelieveImUsingAGoto:
if(count<0) count=0;    //don't get me wrong but this has to be done :p

在大学的一次家庭作业中,一位老师特别坚决地要求我们注释代码:

//I wonder if she actually reads these.

当作业被返回时,在注释“是的,我愿意”旁边用红笔写着