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


当前回答

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

其他回答

'this next if statement - just how it is. don't try to understand it because you won't. :)

这就是工作保障。

所有bug由David S. Miller添加

// set break point here - you'll never reach it

我最喜欢的是一个用java编写的学校项目的一些业务逻辑中的一个变量名。

int StupidJava = -1;
//Maybe you should make anyone knows your code's purpose.