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


当前回答

/**
 * Happy Javadoc haiku:
 *
 * Without Javadoc
 * Builds break in Maven site stage
 * This fixes the build.
 */

其他回答

我看到一些旧的fortran代码:

     integer *4 one,two,three;

c    asssign one to 100 before entering the loop
     one=100;
REM Don't delete this print statement ****** will die

所讨论的流程是一些遗留代码中的服务

在拉丁语中,从但丁的《神曲》中进入这里的人,请放弃希望。

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

断言(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版本参考指南中的声音功能)