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


当前回答

try {
   doSomething();
} catch(err) {
   // Die quietly
   alert(err);
}

其他回答

TextBox1.Text = TextBox1.Text; //Point less yes, who writes this crap?

我曾经见过这个:

//this used to be a comment

在某些汇编程序中,在包含&h723的行末尾

' RIP LVB

(明白吗?)

/**
 * Always returns true.
 */
public boolean isAvailable() {
    return false;
}

永远不要依赖评论……

Linux的评论

这里有很多不错的……

这些都是linux中的注释

http://lwn.net/1998/1015/a/f-word.html

我的最爱:

./arch/sparc/kernel/ptrace.c
/* Fuck me gently with a chainsaw... */

./drivers/scsi/qlogicpti.h
/* Am I fucking pedantic or what? */