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


当前回答

var arbitraryNumber = 10;
//I don't know why. Just move on.

其他回答

# There is a bug in the next line.  $searchParameters != {} will always return true, because {} is creating
# a new hash reference on the fly, and the inequality operater is comparing the memory location of it
# to the memory location of $searchParameters, and they will always be different. 
# This means that the following code will always get executed as long as $nodes is defined.
# I'm leaving it there because it has always been there, and although I'm sure it was originally meant to
# mean %$searchParameters (essentially "is this hash not empty"), I'm afraid to change it.
if ( $nodes && $searchParameters != {} )
{
// insert comment here

我没有这个来源的副本,但我一直记得它:

//如果你想不明白,就不要读这篇文章

// This condition can't happen. Call the police or something.
// Sorry dirty code