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


当前回答

'I hate nested regions and will delete them along with any code found in them.

其他回答

从一个遗留的Perl CGI脚本:

# This is convoluted and evil, sorry.

刚从大学毕业的我渴望亲自动手。我的第一个任务是……“为我注释此代码”。

傻瓜。

过了一段时间我就厌倦了……

// this function doesn't actually calculated the profit, like it says --it really signals the mothership orbiting saturn that the planet is ripe for takeover

[later]

// I don't think anyone is going to read this

[various permutations on that last one]
// TODO: Implement this function!

... 或者去死//婊子

简单但有效的注释,在一些不太安全的c++代码之前

// yikes