你遇到过的源代码中最好的注释是什么?
当前回答
大学时代:
//why the f*** we have to move this here to make it work
当我们和教授一起复习的时候,它在印刷资料中被突出了。
原因是:一些与缓冲区溢出相关的严重错误,影响了代码中其他位置的文件处理程序中不相关的变量。移动变量将使它再次工作。
其他回答
const int TEN=10; // As if the value of 10 will fluctuate...
<cftry>
...code...
<cfcatch>
<!--- Gobble --->
</cfcatch>
<cftry>
我公司的代码库里到处都是。它是ColdFusion,它会忽略错误。
// StupidCompilerDontInline(SCDI), in the test project where
// allcode was in a single cpp the compiler had inlined nearly
// everything which lead to nice stackoverflow.
// To prevent this the metods are made virtual
#define SCDI virtual
mov si, pCard ; captain?
从一个遗留的Perl CGI脚本:
# This is convoluted and evil, sorry.