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


当前回答

/**
 * Not even your mum thinks you're special if you call this method
 */    
onlyYourMumThinksYoureSpecialIfYouCallThisMethod() {...}

其他回答

// If I from the future read this I'll back in time and kill myself. 

在一个艺术资产导出工具中,我偶然发现了一个从数字(阿拉伯)到罗马数字的完整转换器。它是这样的:

/*
//You can tell I was bored
//I wanted to do this for a long time
char* ConvertToRoman(int number, int base)
{
... whole code here
}
*/

编写这段代码的人的团队已经处理了很长时间,我猜这影响了他们的理智。

// Sorry dirty code
// *** drunk -- fix later ***

直接的联系

更有趣的谷歌代码搜索…

来自嵌入式系统中的电池监测模块:

// batmon.c drives the rastamobile