你遇到过的源代码中最好的注释是什么?
当前回答
/*
This isn't the right way to deal with this, but today is my last day, Ron
just spilled coffee on my desk, and I'm hungry, so this will have to do...
*/
return 12; // 12 is my lucky number
其他回答
// Singleton object. Leave $me alone.
private static $me;
设法把这个糟糕的双关语插入到我们的代码中
for (bo_thans = 0 ; bo_thans < MAX ; bo_thans++)
{
if(rs == thing[bo_thans])
{
found = true;
}
}
if(!found)
{
/* Failed to find rs with bo_thans */
...
}
回到《Hitchhiker’s Guide》刚问世的时候,我曾经测试过某些内容是否可滚动,以及用户是否尝试着滚动,这是一种限制可变长度的语言。所以:
if (scroll and noScroll) # or tea and no tea
当我读到这篇关于我负责维护的项目的文章时,我哭了。
//Write Code Here
我仍然畏缩:)
// Sorry dirty code