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


当前回答

const int TEN=10; // As if the value of 10 will fluctuate... 

其他回答

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

A:很简单——就是那个帮我解决了我当时遇到的任何问题的人,而且有很多这样的人!

其次是那些帮助指导新开发避免已知陷阱的方法。

// Keep prozac ready if things get ugly!
// I am not sure if we need this, but too scared to delete. 
virgin = 0;     /* you're not a virgin anymore, sweety */

有一些旧的javascript代码,写得很好。然后是一条评论线

// and there is where the dragon lives

接下来是一个功能,4个人花了一天时间来理解它在做什么。最后我们意识到它根本没用,什么都没有。