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


当前回答

经典的旧netscape mozilla代码。我个人喜欢

就是不能乱来。而且移动记忆会毁了我们,还有 一切都太他妈难搞清楚了。所以,我放弃了,Mac 完全完全地吸走完整的岩石

但还有很多其他有趣的。

其他回答

今天刚加了这个:

// Hardcoded this for time sake ... will make andrew fix later :)

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

'CANNOT JUST QUIT!
# absolutely foul heuristic code.
# ..it's dirty, but you want it.

and:

# VERY USEFUL DEBUGGING AID, for when the above all goes pearshaped:

从谷歌代码项目:

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

我告诉学员至少做一些异常处理。这是我在每一个db调用....返回

Catch (Exception e) {
    //eat it
}