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


当前回答

/* Only break the connection if it actually exists. It is important to
 * check the timeslot saved in the SOURCE of the disconnect message. */

我写了这条评论,现在我不记得为什么它很重要了…

其他回答

// *** drunk -- fix later ***

直接的联系

更有趣的谷歌代码搜索…

从一个遗留的Perl CGI脚本:

# This is convoluted and evil, sorry.

来自usenet的经典:

Teradyne硬件建模器代码的深层是一个例程 一大堆十六进制数字到SYS$QIO调用中。唯一的评论是 “这里发生了奇怪的魔法”。

/// <summary>
/// The possible outcomes of an update operation (save or delete)
/// </summary>
public enum UpdateResult
{

    /// <summary>
    /// Updated successfully
    /// </summary>
    Success = 0,

    /// <summary>
    /// Updated successfully
    /// </summary>
    Failed = 1
}
//Abandon all hope ye who enter beyond this point