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


当前回答

这是我自己代码中的一个,但它仍然非常有趣,我认为最好还是把它放在网上,因为它是在公共SVN中。

// These were orginally up and down. When it was clear the names were
// inapplicable, they were renamed to retain the joke.
// Sorry if you were hoping for useful variable names.
quantum strange, charm;

其他回答

//Abandon all hope ye who enter beyond this point
// TODO - Comment this function

我记不清了,大概是这样的:

Person p = new Person("John", "Doe", "male");
Collection women = new ArrayList();
women.insert(p.getTail());

这是肮脏的代码;)

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

// not brilliant solution, but fair enough heh.
stop(); // Hammertime!