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


当前回答

// A Gorgon class - For the love of Zeus don't look directly at it!

其他回答

我在查看TVNZ网站早期迭代的HTML源代码时发现了这个宝藏(如果你在家玩的话,从571行开始):

<!-- Hopfully we can do this otherwise the nav is going to be pretty plain and Hong will go postal. -->
//Abandon all hope ye who enter beyond this point
catch (Ex as Exception)
{
     // oh crap, we should do something.
}

没有什么比一个空的catch块更能让人觉得代码是健壮的....

/*************************** Drag And Drop Section - Start (you should be me to mess with this section)*********************************************/

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

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