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


当前回答

几年前我在。h文件里看到的。

// It may be a hack, but it works.

其他回答

对上帝诚实:

// This is crap code but it's 3 a.m. and I need to get this working.
// The following strings are meant to be funny.  Do not edit these strings
// unless you are funny, too.  If you don't know if you're funny, you're
// not funny.  If fewer than 2 people unrelated to you have told you that 
// you're funny, you're not funny.

来自sendmail配置文件。一页又一页看起来就像线条噪音。我发现了这块宝石。

# insert this handy debugging line wherever you have problems
#R$*                $:$>99$1
// drunk, fix later

真希望我是在开玩笑。根据编写代码的开发人员的了解,我认为他是认真的。

stop(); // Hammertime!