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


当前回答

对上帝诚实:

// This is crap code but it's 3 a.m. and I need to get this working.

其他回答

Dennis M Ritchie在这里有一个关于一些古老UNIX注释的页面

大概30页的xslt的中间部分

<!-- Here be dragons  -->
struct core_unlocker
{
    core_unlocker(lock)
    {
        m_lock = lock
        unlock(lock)  //Abandon All Locks, Ye Who Enter Core!
    }
    ~core_unlocker()
    {
        lock(m_lock)
    }  
    private:
    Corelock m_lock;
}
/*
* TODO: Remove this function

function remove($customer_id)
    {
        $this->Customer->remove($id);
    }

*/

.class {border:1px solid gold;} /*我可怜这个傻瓜*/