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


当前回答

$this->getSelect()->where ('main_table.product_id = -1'); // Mom, Dad... sorry

其他回答

// Any maintenance developer who can't quote entire Monty Python
// movies from memory has no business being a developer. 
const string LancelotsFavoriteColor = "$0204FB"
// This is a walkaround for bug #7812

是我们的一个中国程序员写的,他的第一语言不是英语。

我真的很喜欢这个。我碰巧认为“walkaround”几乎比“workaround”更好。

http://fxr.watson.org/fxr/source/pci/if_rl.c 是好的来源。

#define FUCK_VS6_CANT_COMPILE_TEMPLATES_WITHOUT_HANDHOLDING ((float*)0)

... 

SetPinsFromChannels`<float`>(&pinbuf, streambuf, &inmapper, FUCK_VS6_CANT_COMPILE_TEMPLATES_WITHOUT_HANDHOLDING);
catch (Exception ex)
{ 
    // just die already.
}