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


当前回答

//If you're reading this, then my program is probably a success

其他回答

//If you're reading this, then my program is probably a success

我最喜欢的评论是我的一个同性恋朋友说的。他喜欢用VB标记他所有的TODO注释。净,

'TODO: Matt Damon

有时会提供额外的信息,但通常不是这样。

下面是一个必须声明的局部变量,只是为了将一个常量传递给库函数:

// This only exists because Scott doesn't know how to use const correctly

在js代码中:

// hack for ie browser (assuming that ie is a browser)
# absolutely foul heuristic code.
# ..it's dirty, but you want it.

and:

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