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


当前回答

我看到有人对代码的评论:

// This comment is self explanatory.

我猜他是想说“可变的”,但这个错误造成了一个有趣的评论……想想这里的循环逻辑,以及写它的徒劳。

其他回答

public GetRandomNumber()
{
    // Chosen by a fairly rolen dice
    return 12;
}
// Singleton object. Leave $me alone.
private static $me;
public function get state( /* of Palestine back */ ):Boolean

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

在很长的程序之前:)

// This part is more difficult

在方法的顶部。

大概有5行。

并不难。

这是唯一的评论。

在整个应用程序中。