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


当前回答

'Mind boggling, gibberish version of a SQL statement, but it work's, so dont touch it

其他回答

// this comment included for the benefit of anyone grepping for swearwords: shit.

我不知道这是有趣还是悲伤..但是和我一起工作的一个实习生有这个小宝石来计算每个单位的价格

...

// get the units from the form 
int numUnits = Integer.parseInt(request.getParameter("num_pieces")); // this break at random times

//price 
float price = Float.parseFloat(request.getParameter("price")); // same as above

// Under certain conditions the following code blows up. I don't know those conditions.
float pricePerUnit = price / (float)numUnits;

...
// Empty constructor to satisfy the stupid compiler
 Public ServletHandlerClass () { } 

有一次,我在另一个讨论中看到这样的内容:

// I can't divide with zero, so I have to divide with something very similar
result = number / 0.00000000000001;

聪明的解决方案,不是吗?(如果有人不确定,这就是个笑话)

} catch (PartInitException pie) {
    // Mmm... pie