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


当前回答

//下面的代码需要被注释掉

其他回答

我的一个老老板总是说我们必须在内部使用我们自己的产品。“吃我们自己的狗粮……”

许多年后,我发现嵌入在一个临时同事所做的源代码中,他触及的每个函数都被标记为:

/* NOT FIT FOR HUMAN CONSUMPTION */
// If this comment is removed the program will blow up 

在初始化链表时:

last = first; /* Biblical reference */

简洁而滑稽。

Case 1:
   ...
   break;
   ...
//I don't want do do this but [my coworker] says it's part of the code standard
default:
   break;

大概30页的xslt的中间部分

<!-- Here be dragons  -->