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


当前回答

以下是4个,排名不分先后:

// Father, forgive me, for I am sinning

// heaven help me

// horse string-length into correctitude 
(from a textbook)

// what, me worry?

其他回答

// Any maintenance developer who can't quote entire Monty Python
// movies from memory has no business being a developer. 
const string LancelotsFavoriteColor = "$0204FB"

我曾经在一个用Paradox 3.5 -编写的大型预算系统工作多年后接到一个客户的电话

“我们在调试中遇到了一些注释”-

// This shouldn't happen, if it does, then the bits that automagically 
// worked when I wrote it have stopped working

... !

REM Don't delete this print statement ****** will die

所讨论的流程是一些遗留代码中的服务

// No women, no children... What movie???
// Catching exceptions is for communists

来自Mike Duncan在SQLite上的页面。