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


当前回答

options.BatchSize = 300; //Madness? THIS IS SPARTA!

其他回答

// this is really complicated

没有其他评论了

这比你在许多评论标题中看到的可怕的法律通知和免责声明要好得多。从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.
*/
// TODO: not this

上面写了一个同事迫切需要优化的查询。替他说句话,当时我们几个月都是每周工作70个小时……

Tweet tweet = (Tweet) tweets.get(i); // Poetic.
// Sorry dirty code