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


当前回答

我经常看到这种情况:

// TODO make this work

其他回答

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

<!-- Hopfully we can do this otherwise the nav is going to be pretty plain and Hong will go postal. -->
// barcore.cpp - MFC

//.....
HBRUSH CControlBar::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
    LRESULT lResult;
    if (pWnd->SendChildNotifyLastMsg(&lResult))
        return (HBRUSH)lResult;     // eat it

//......

// Eat it - just like eat this.

//把这个放在这里的人是个白痴…这根本不管用!

但是代码还在那里……

// Okay, let's do the loop, yeah come on baby let's do the loop
// and it goes like this ...

我发现了这个:

I'm not sure what I did