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


当前回答

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

其他回答

// Hard to explain

它最后也坏了。难怪很难解释清楚


$you = live("free") or die("hard");

map(TimeZoneId.Romance, "Romance Standard Time"); //LULZ.

我最喜欢的评论是我的一个同性恋朋友说的。他喜欢用VB标记他所有的TODO注释。净,

'TODO: Matt Damon

有时会提供额外的信息,但通常不是这样。

// this error could never happen

然后,客户打电话说他看到一条错误消息说"这个错误永远不会发生"