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


当前回答

// if i ever see this again i'm going to start bringing guns to work

其他回答

What do you think you're doing, Dave?

为什么你不应该将你的软件开发外包的一个经典案例:

public class Contact
{
    //...    

    /// <summary>
    /// Gets or sets the name of the first.
    /// </summary>
    /// <value>The name of the first.</value>
    public string FirstName
    {
        get { return _firstName; }
        set { _firstName = value; }
    }
}

大约1997年,Netscape网络浏览器的UNIX风格的源代码:

/* HP-UX sucks wet farts from dead pigeons' asses */

不幸的是,在Moz开源之前,这些珍珠被移除了……

// No women, no children... What movie???

javascript函数的第一行:

// this part is more difficult

WTF?