你遇到过的源代码中最好的注释是什么?
当前回答
//There can Only Be one HIGHLAN....err..Singleton
public class SomeSingleton
{
...
}
其他回答
Case 1:
...
break;
...
//I don't want do do this but [my coworker] says it's part of the code standard
default:
break;
/*这是一个可怕的黑客攻击的副本——很多年前,遗留的PortfolioServer被修改为在“optionTrade”块中返回现金交易,因为客户端开发人员太懒了,没有正确地获取他们的xpath。他们的懒惰一直在回响,这意味着我们在这里需要一个类似的黑客……*/
//This code sucks, you know it and I know it.
//Move on and call me an idiot later.
// but the "real" solution is much more complicated
从jpgraph
(A bunch of code that's really weird looking) //Kludge.