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


当前回答

我想我有过这样的经历:


if (case1) { // trivial
...
}
else { // we are screwed
 /* fill in later */
}

好吧,我可能用了一个比搞砸更强烈的词

其他回答

在游戏中,这个物体可以被踩到,或者:

stepOff(); //bitch

我最喜欢的是一个用java编写的学校项目的一些业务逻辑中的一个变量名。

int StupidJava = -1;

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

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

/* Emits a 7-Hz tone for 10 seconds.
  True story: 7 Hz is the resonant frequency of a
  chicken's skull cavity. This was determined
  empirically in Australia, where a new factory
  generating 7-Hz tones was located too close to a
  chicken ranch: When the factory started up, all the
  chickens died.
  Your PC may not be able to emit a 7-Hz tone. */

main()
{
    sound(7);
    delay(10000);
    nosound();
}

(Turbo C 2.0版本参考指南中的声音功能)

我相信在JBoss的某个地方有一行写着

return null; //Not really null

我一直很喜欢这句话。