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


当前回答

// 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

其他回答

在被迫为贫血域对象编写单元测试时,这些对象不过是getter和setter的包(我也是被迫写的):

// zzzzZZZZzzzz....
//I'm sorry, but our princess is in another castle.
//Do not continue reading if you dont want to die.

这个差点要了我的命。

看这个:

'On Error Goto Hell.
// The hackiest hack that ever did hack

它在WordPress博客引擎(wp-admin/includes/user.php -如果有人真的想看黑客攻击本身)。