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


当前回答

以下注释来自我必须调试的一个旧项目:

//Haleluya i can go home!

其他回答

在一些非常蹩脚的vb代码(我知道这都是蹩脚的,但),我发现这是一个空的if控制块中的注释,它说:

If bFound Then
     'I love it when I write kick ass code like this
Else
  .
  .
/* Only break the connection if it actually exists. It is important to
 * check the timeslot saved in the SOURCE of the disconnect message. */

我写了这条评论,现在我不记得为什么它很重要了…

/* FIXME This must absolutely be removed before 4.0.7 release
 * TODO really remove this */

我们已经发布了4.0.7,4.0.8,4.0.9和4.1版本…

// Fuck.

,……

// This code worked before, but my cat decided to take a trip across my keyboard...
def leppard
# what, i cant have my own convention?
end