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


当前回答

 /**
   * Returns cookies according to the filters specified.
   * 
   * @return array  Cookies!  Nom nom nom nom nom.
   */
 public function data_getCookies($uid, $name) {

在facebook api的某个地方。

其他回答

http://fxr.watson.org/fxr/source/pci/if_rl.c 是好的来源。

回顾类中的旧代码很有趣……

    cardDeck.push_back(*(new card((rank)r, (suit)s)));  // Push each card onto the deck
                                                        // Temp. objects are overrated

在经历一些事情的时候,它让我希望我在凌晨4点随机编码的时候留下更多的评论……

double t = 0.0; /* that's generally my opinion of the diner, too. */
// *** drunk -- fix later ***

直接的联系

更有趣的谷歌代码搜索…

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

public boolean getDirty (String MAC) // not as fun as it sounds