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


当前回答

// Sorry dirty code

其他回答

在被迫为贫血域对象编写单元测试时,这些对象不过是getter和setter的包(我也是被迫写的):

// zzzzZZZZzzzz....
  rescue
    # silently, we fail
    # many validations fade
    # like tear drops in rain
  end

这只是众多案例中的一个……

// If I from the future read this I'll back in time and kill myself. 
BEGIN.
// Here might be dragons
.
.
 IF...
 // Beware of the Jabberwocky
 .//user the force, luke
 .
 .
 ENDIF.
.
END.

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

'CANNOT JUST QUIT!