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


当前回答

//This code sucks, you know it and I know it.  
//Move on and call me an idiot later.

其他回答

// BEGIN HACK
...
// END HACK: I feel dirty.
// GK Experimental

(GK是编码器的首字母缩写)

用来表示部分代码,实际上,是实验性的。:)

这是一个很好的标志,当你在调试过程中碰到它时,你可能会在接下来的几个小时里忙着修复黑客。;)

在头文件的顶部:

/* Project : XYZ (Please somebody shoot me!)
 *
 * File : $Id: defs.h,v 1.1 $
 *
 * Purpose : Create havoc rather than peace among many nations
 *
 * History : Back-ported changes that were not in CVS.  Please somebody,
 *  shoot us and put us all out of our misery.
 */

“XYZ项目”(已改名)是一个长达七年的折磨。最后这句话是由一个从头到尾都参与其中的坚定的灵魂写的。

“这永远不会发生”。

朋友,这是我的临终遗言……

Catch (Exception e) {
 //who cares?
}