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


当前回答

/*
    FIXME:  why the fuck did anyone ever think this kind of expensive iteration
                    was a good idea?

其他回答

唐纳德·克努斯的另一个经典作品:

注意上面代码中的bug; 我只是证明了它是正确的,并没有尝试过。

这是我们在大学宿舍使用的自定义DHCP服务器,根据它们是否注册/安装补丁和防病毒,将计算机放入“干净”或“脏”IP地址池:

public boolean getDirty (String MAC) // not as fun as it sounds
long john; // silver
catch (Ex as Exception)
{
     // oh crap, we should do something.
}

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

//There can Only Be one HIGHLAN....err..Singleton
public class SomeSingleton
{
...
}