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


当前回答

我在查看TVNZ网站早期迭代的HTML源代码时发现了这个宝藏(如果你在家玩的话,从571行开始):

<!-- Hopfully we can do this otherwise the nav is going to be pretty plain and Hong will go postal. -->

其他回答

来自Java 1.2的SwingUtilities:

doRun.run();  // ... "a doo run run".

刚刚在一些Actionscript中发现了这个,我必须更新…

/*
* spaghetty code in this module.
* hardcoded variables for load paths for the content window.
* Needs (vast) improvement.
*/

..大:(

// this error could never happen

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

//Time log says you've been here for 15 hours GO HOME, your code is hobo

回到《Hitchhiker’s Guide》刚问世的时候,我曾经测试过某些内容是否可滚动,以及用户是否尝试着滚动,这是一种限制可变长度的语言。所以:

if (scroll and noScroll) # or tea and no tea