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


当前回答

long long ago; /* in a galaxy far far away */ 

其他回答

Dennis M Ritchie在这里有一个关于一些古老UNIX注释的页面

/* My lawyer told me not to reveal */

我曾经使用MS SQL Server Developer 2000实现了一些文档工作流(人工工作流的东西)。

它由一堆触发器组成,这些触发器将被添加到数据库中,使其遵循工作流规则。

在其中一个触发器中,微软的某个人写了如下内容:

//Determine if the database has been "Grizzlified"

(该产品的内部名称是“Grizzly”,所以我觉得这很有趣)。

double t = 0.0; /* that's generally my opinion of the diner, too. */
-- Change Log:  Not needed. The code is perfect 'cause I wrote it.
-- If you change it, it will break.

我正在检查一些代码注释,以检查它们是否有意义,并看到上面的一行。