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


当前回答

从谷歌代码项目:

# This job would be great if it wasn't for the fucking customers.

其他回答

在makefile中找到这个

# ===== Never edit below this line. Ever. Or I'll kick your ass. ====
Get This hack!

在一行汇编代码中,在几页未注释的代码之后。

-- Beyond this point, there'll be dragons

我觉得更长的说法^^更能说明问题

// drunk, fix later

真希望我是在开玩笑。根据编写代码的开发人员的了解,我认为他是认真的。

我在重用我很久以前写的一个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;
}