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


当前回答

我们的DBA在第三方编写的3000行存储过程中发现了这一点。

/* IF DOLPHINS ARE SO SMART, HOW COME THEY LIVE IN IGLOOS? */

其他回答

// simply copied from another code

在游戏中,这个物体可以被踩到,或者:

stepOff(); //bitch

有一次我发现:

// I wish (boss name) could do this by him self.
// Oh crap, i think i'm gonna yack

随后不久又有:

// TODO: end this lunacy

我只是在一个非常简单的大学课程测试c++程序中碰到了这个。

我在评论一个类。

在析构函数中…

// Choose! Choose the form of the Destructor!
// The choice is made! The Traveler has come!