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


当前回答

// Hack-er-ama

其他回答

不是一个评论,而是一个goto标签

ICantBelieveImUsingAGoto:
// I know the line below is wrong, but it came that way from our IP vendor, and 
// the driver won't work if you "fix" it. I've had to revert this change 4 times
// now. Leave it alone, or I will hunt you down and hurt you
if (r = 0) {
    /* bunch of code here */
}
else
{
   /* even more code here */
}

大概30页的xslt的中间部分

<!-- Here be dragons  -->

在给一个朋友看了这篇来自《Coding Horror》的文章几个小时后,我看到了他对代码的评论:

// valdez先生是一个暴力的精神病患者。别惹他生气。

// this is really complicated

没有其他评论了