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


当前回答

//This code sucks, you know it and I know it.  
//Move on and call me an idiot later.

其他回答

在一个著名的商业DOS电子表格应用程序中:

/* This comment was just added in order to check-in a file that was last 
checked in by [Insert Programmer FirstName] "Back-to-the-Future" [Insert 
Programmer LastName]. While testing for year 2000 problems, he accidentally 
checked-in this file while his machine clock was set forward to the year 2000. 
This meant that the source code was always newer than the object file and 
compiled every time the code was built. I'm checking this file in again to 
fix that. */
long john; // silver
public boolean isDirty() {
    //Why do you always go out and
    return dirty;
}

一段时间前我在一个PHP CMS中添加的注释。

if (/*you*/ $_GET['action']) { //celebrate
'this next if statement - just how it is. don't try to understand it because you won't. :)

这就是工作保障。