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


当前回答

一个奇怪而恰当的有趣错别字:

断言(0);//永远不要在这一点上犯错

其他回答

//I'm sorry, but our princess is in another castle.

一段时间前我在一个PHP CMS中添加的注释。

if (/*you*/ $_GET['action']) { //celebrate

一个可怕的解码补丁(意大利语翻译):

/**
*@return the value 
*@param key: the id of the list of instruments
*@PS this function is a violation of all the laws of the 
*software engineering, 
*commons sense, highway code 
*and ONU decision about the coding.
That sh*t...
*/

从一个遗留的Perl CGI脚本:

# This is convoluted and evil, sorry.
'this next if statement - just how it is. don't try to understand it because you won't. :)

这就是工作保障。