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


当前回答

class Act //That's me!!!
{

}

其他回答

long long ago; /* in a galaxy far far away */ 

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

/**
*@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...
*/

我刚刚在一些遗留代码中发现了这个..

'CANNOT JUST QUIT!
//Time log says you've been here for 15 hours GO HOME, your code is hobo

我在重用我很久以前写的一个PHP类时发现了这一点。我仍然不记得那里有什么,我仍然发现它没有任何用处……我甚至不记得我写过那篇评论;所以当我找到它的时候,我真的笑出声来了。

try
{               
    // Some database logic
}
catch (Exception $ex)
{
    // sure, it looks silly and I honestly cant remember what code used to go here... but i swear i will
    // find a use for this code.... eventually....
    throw $ex;
}