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


当前回答

/*
* After 36 hours, 2 holes in my wall and writing my code right beside the API
* this still doesn't work.
* function getMap():void takes in an event object @param: evt:mouseEvent
* I will now retire for the day with a bottle of rum and 2 hours of crying
*/

其他回答

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

'TODO: Matt Damon

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

.class {border:1px solid gold;} /*我可怜这个傻瓜*/

const int TEN=10; // As if the value of 10 will fluctuate...