我最喜欢的10条编程语录
fmms 12年前
<p>今天也在国外程序员 Senthil Kumar 的博客看到了他最喜欢的10条编程语录。其中大部分已经分享过,现再次综合分享给大家。</p> <p>(提示:正如广为流传的经典段子,有些经典语录有多个版本,作者署名都不一样。从下文就可以看出来。英文原文我保留了 Senthil Kumar 的。中文版本后面的作者署名是我当时所看到的署名。)<br /> <br /> <strong style="padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;padding-top:0px;">09. If debugging is the process of removing software bugs, then programming must be the process of putting them in. – Edsger Dijkstra</strong><br /> 如果调试程序是移除臭虫(软件缺陷)的过程,那编写程序就是把臭虫放进来的过程。—— 迪杰斯特拉<br /> <a href="/misc/goto?guid=4958338334014037913"><img style="border-bottom:#d4d4d4 1px solid;border-left:#d4d4d4 1px solid;padding-bottom:5px;margin:5px auto 0px;padding-left:5px;padding-right:5px;display:block;clear:both;border-top:#d4d4d4 1px solid;border-right:#d4d4d4 1px solid;padding-top:5px;border-radius:6px 6px 6px 6px;" class="size-full wp-image-18404 aligncenter" title="Programming Quotes 0604 Edsger Dijkstra" alt="我最喜欢的10条编程语录" src="https://simg.open-open.com/show/b6dce8e8ff2892cbe05ea69a8695afa5.jpg" width="440" height="822" /></a><br /> <strong style="padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;padding-top:0px;">08. The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time. – Tom Cargill</strong><br /> 软件开发的时间通常是这样的:一开始的90%开发工作用掉了整个计划90%的时间,剩下的10%同样需要整个计划90%的时间,而最终发布前的修改也是如此。—— N.J. Rubenking<br /> Writing the first 90 percent of a computer program takes 90 percent of the time. The remaining ten percent also takes 90 percent of the time and the final touches also take 90 percent of the time. ~N.J. Rubenking<br /> <br /> <strong style="padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;padding-top:0px;">07. “There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies.”- C.A.R. Hoare</strong><br /> 设计软件有两种方法:一种是简单到明显没有缺陷,另一种复杂到缺陷不那么明显。—— 托尼·霍尔<br /> <img style="border-bottom:#d4d4d4 1px solid;border-left:#d4d4d4 1px solid;padding-bottom:5px;margin:5px auto 0px;padding-left:5px;padding-right:5px;display:block;clear:both;border-top:#d4d4d4 1px solid;border-right:#d4d4d4 1px solid;padding-top:5px;border-radius:6px 6px 6px 6px;" class="aligncenter size-full wp-image-18405" title="Programming Quotes 0620 Tony Hoare" alt="我最喜欢的10条编程语录" src="https://simg.open-open.com/show/d5070934fb28876af2334a29bf831d95.jpg" width="440" height="800" /><br /> <br /> <strong style="padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;padding-top:0px;">06. Measuring programming progress by lines of code is like measuring aircraft building progress by weight. – Bill Gates</strong><br /> 用代码行数来衡量程序的开发进度,就好比用重量来衡量飞机的制造进度。—— 比尔·盖茨<br /> <img style="border-bottom:#d4d4d4 1px solid;border-left:#d4d4d4 1px solid;padding-bottom:5px;margin:5px auto 0px;padding-left:5px;padding-right:5px;display:block;clear:both;border-top:#d4d4d4 1px solid;border-right:#d4d4d4 1px solid;padding-top:5px;border-radius:6px 6px 6px 6px;" class="aligncenter size-full wp-image-18406" title="Programming Quotes 0520 Bill Gates" alt="我最喜欢的10条编程语录" src="https://simg.open-open.com/show/124b9042e4fc652f65580af91d19028b.jpg" width="440" height="800" /><br /> <br /> <strong style="padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;padding-top:0px;">05. “Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.” – Martin Golding</strong><br /> 在编写代码的时候,你要经常想着,那个最终维护你代码的人可能将是一个有暴力倾向的疯子,并且他还知道你住在哪里。—— 里克·奥斯本<br /> 补充:关于这条语录,StackOverflow 上也有个<a href="/misc/goto?guid=4958338335026744699">讨论帖</a>,给出的答案可能是 John Woods。<br /> <br /> <strong style="padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;padding-top:0px;">04. “The trouble with programmers is that you can never tell what a programmer is doing until it’s too late.” – Seymour Cray</strong><br /> 程序员的问题是,你无法知道他在做什么,直到为时已晚。—— 西摩·克雷<br /> <br /> <strong style="padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;padding-top:0px;">03. Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. – Rick Cook</strong><br /> 今日之编程,已是竭力要建立更大更反白痴程序的软件工程师,和正塑造更大更优质白痴的现实世界之间的比赛。目前来看,现实世界赢了。—— Rick Cook<br /> <br /> <strong style="padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;padding-top:0px;">02. “Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris.” – <a href="/misc/goto?guid=4958338335827902174">Larry Wall</a></strong><br /> 你们大部分人都熟悉程序员的美德。当然了,是这三种:懒惰、急躁、傲慢。—— 拉里·沃尔 (Perl 语言之父)<br /> <br /> <strong style="padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;padding-top:0px;">01. “Sometimes it pays to stay in bed on Monday, rather than spending the rest of the week debugging Monday’s code.” – Christopher Thompson</strong><br /> 有的时候宁愿付钱让你周一在床上待着,也不想让你用这周剩下的时间去调试你在周一所写的代码。 —— 丹·所罗门<br /> <br /> <strong style="padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;padding-top:0px;">00. Walking on water and developing software from a specification are easy if both are frozen. – Edward V Berard</strong><br /> 在水中行走,和根据一份需求开发软件一样,如果它们都“冻”住了,那就容易了。—— 爱德华·贝拉尔德<br /> <br /> 英文原文:<a href="/misc/goto?guid=4958338336623209574">Senthil Kumar</a> 编译:<a href="/misc/goto?guid=4958185140659301754">伯乐</a>在线 – <a href="/misc/goto?guid=4958338338165017327">黄利民</a></p>