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


当前回答

在SJ CA拍卖业务的早期,我曾与一个名叫Rick Dorin的人合作过。他写编译器的时候,你必须整天拨弄卡片。他的错误信息之一是

错误太多……让更少的!

其他回答

有一次我发现:

// I wish (boss name) could do this by him self.
// No women, no children... What movie???

来自c#中的单元测试类:

#region quis custodiet ipsos custodes?

[Fact]
public void TestPositive()
{
    Assert.Equal(4, 2 + 2);
}

[Fact]
public void TestNegative()
{
    Assert.Equal(5, 2 + 2);
}

#endregion
Catch (Exception e) {
 //who cares?
} 
// Keep prozac ready if things get ugly!