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


当前回答

//Woulda
if(x) {}
//Shoulda
else if(y) {}
//Coulda
else {}

其他回答

这是我们在大学宿舍使用的自定义DHCP服务器,根据它们是否注册/安装补丁和防病毒,将计算机放入“干净”或“脏”IP地址池:

public boolean getDirty (String MAC) // not as fun as it sounds
//Do not continue reading if you dont want to die.

这个差点要了我的命。

这在我自己的代码中出现过几次。显然我摸了不止一次。

// TODO: Fix this.  Fix what?
/**
 * If you don't understand this code, you should be flipping burgers instead.
 */
// This condition can't happen. Call the police or something.