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


当前回答

//todo: never to be implemented

其他回答

/**
 * If you don't understand this code, you should be flipping burgers instead.
 */

我经常看到这种情况:

// TODO make this work
//There can Only Be one HIGHLAN....err..Singleton
public class SomeSingleton
{
...
}

目前为止最好的一个:

"This code makes baby Jesus very sad!". 

它像这样引用一个String的初始化:

String blankSpaces="                              "+ //100 whitespaces
                   "                              "+ //200 Whitespaces
                   ...
                   "                                        " //100 whitespaces

你懂的。

public int hashCode() {
//sucks, but what're you gonna do

/*
int hash = 7;
for (int i = 0; i < array.length; i++)
    hash = hash * 31 * (null == array[i] ? 0 : array[i].hashCode());
return hash;
*/

return 0;
}