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


当前回答

//这将为我们每个用户节省0.5秒,并取悦机器精神。

在很长的程序之前:)

其他回答

这比你在许多评论标题中看到的可怕的法律通知和免责声明要好得多。从SQLite。

/*
** The author disclaims copyright to this source code.  In place of
** a legal notice, here is a blessing:
**
**    May you do good and not evil.
**    May you find forgiveness for yourself and forgive others.
**    May you share freely, never taking more than you give.
*/
// Singleton object. Leave $me alone.
private static $me;

/*现在,让所有这些看 半得体的弱智步 哥哥 浏览器家族中的一员,互联网 该死的探险家*/

else
{
    //error situation
}

这是我今天重构一些代码时发现的一条评论

if( year < 100 ): year += 2000 #lol, Y2K