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


当前回答

/*************************** Drag And Drop Section - Start (you should be me to mess with this section)*********************************************/

其他回答

我一直很喜欢Paul DiLascia在他的文件头中写的:

// If this code works, it was written by Paul DiLascia. If not, I don't know
// who wrote it
//There can Only Be one HIGHLAN....err..Singleton
public class SomeSingleton
{
...
}

一个奇怪而恰当的有趣错别字:

断言(0);//永远不要在这一点上犯错

我刚刚注意到自己在写这个

// not brilliant solution, but fair enough heh.

我告诉学员至少做一些异常处理。这是我在每一个db调用....返回

Catch (Exception e) {
    //eat it
}