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


当前回答

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

其他回答

我一直很喜欢Paul DiLascia在他的文件头中写的:

// If this code works, it was written by Paul DiLascia. If not, I don't know
// who wrote it

这似乎阻止了白痴搞砸我的代码…

// Autogenerated, do not edit. All changes will be undone.

/*现在,让所有这些看 半得体的弱智步 哥哥 浏览器家族中的一员,互联网 该死的探险家*/

'I hate nested regions and will delete them along with any code found in them.
when :orientation
## Avoid matching gay people with straight people - they hate it, they do, they really do.
query_parameter = "(users.orientation = 'Bi' OR (users.orientation = 'Straight' AND users.gender IN ('#{user.opposite_genders.join('\',\'')}')) OR (users.orientation = 'Gay' AND users.gender IN ('#{user.same_genders.join('\',\'')}')))"

从一个约会网站…