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


当前回答

在makefile中找到这个

# ===== Never edit below this line. Ever. Or I'll kick your ass. ====

其他回答

// Sorry dirty code
if(count<0) count=0;    //don't get me wrong but this has to be done :p

我曾经参与过Windows 3.0的源代码。(我赶紧补充一句,作为一名微软员工,不是!)在那里,我遇到了一个文件加载器,它可以多次重新输入,并且有一个讨厌的双关语的例子(只是为了显示作者有多聪明)。

这些乱七八糟的可重入代码是用Intel程序集jmp指令(在C代码中间)执行的,它的标签是“we_are_not_in_kansas_any_more_toto”。

// If you're reading this, that means you have been put in charge of my previous project.
// I am so, so sorry for you. God speed.
aComment = 'this is not aComment' # this is aComment
class T(object):
    def f(this):
        this is not aComment