国外程序员分享的10条编程经典语录

开发 后端
正如广为流传的经典段子,有些经典语录有多个版本,作者署名都不一样。从下文就可以看出来。英文原文保留了Senthil Kumar的。中文版本后面的作者署名是当时所看到的署名。

10. If debugging is the process of removing software bugs, then programming must be the process of putting them in. – Edsger Dijkstra

如果调试程序是移除臭虫(软件缺陷)的过程,那编写程序就是把臭虫放进来的过程。—— 迪杰斯特拉

If debugging is the process of removing software bugs, then programming must be the process of putting them in.

09. 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

软件开发的时间通常是这样的:一开始的90%开发工作用掉了整个计划90%的时间,剩下的10%同样需要整个计划90%的时间,而最终发布前的修改也是如此。—— N.J. Rubenking

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

08. “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

设计软件有两种方法:一种是简单到明显没有缺陷,另一种复杂到缺陷不那么明显。—— 托尼·霍尔

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.

07. Measuring programming progress by lines of code is like measuring aircraft building progress by weight. – Bill Gates

用代码行数来衡量程序的开发进度,就好比用重量来衡量飞机的制造进度。—— 比尔·盖茨

Measuring programming progress by lines of code is like measuring aircraft building progress by weight.  

06. “Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.” – Martin Golding

在编写代码的时候,你要经常想着,那个最终维护你代码的人可能将是一个有暴力倾向的疯子,并且他还知道你住在哪里。—— 里克·奥斯本

补充:关于这条语录,StackOverflow 上也有个讨论帖,给出的答案可能是John Woods。

05. “The trouble with programmers is that you can never tell what a programmer is doing until it’s too late.” – Seymour Cray

程序员的问题是,你无法知道他在做什么,直到为时已晚。—— 西摩·克雷

04. 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

今日之编程,已是竭力要建立更大更反白痴程序的软件工程师,和正塑造更大更优质白痴的现实世界之间的比赛。目前来看,现实世界赢了。—— Rick Cook

03. “Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris.” – Larry Wall

你们大部分人都熟悉程序员的美德。当然了,是这三种:懒惰、急躁、傲慢。—— 拉里·沃尔 (Perl 语言之父)

02. “Sometimes it pays to stay in bed on Monday, rather than spending the rest of the week debugging Monday’s code.” – Christopher Thompson

有的时候宁愿付钱让你周一在床上待着,也不想让你用这周剩下的时间去调试你在周一所写的代码。 —— 丹·所罗门

01. Walking on water and developing software from a specification are easy if both are frozen. – Edward V Berard

在水中行走,和根据一份需求开发软件一样,如果它们都“冻”住了,那就容易了。—— 爱德华·贝拉尔德

原文链接:http://www.itokit.com/2012/0429/73705.html

【编辑推荐】

  1. 我在谷歌的一次有趣的面试经历
  2. 你的代码写的很烂,真的很烂!
  3. 中软国际Java程序员笔试题
  4. Java程序员必知的8大排序
  5. Java系统程序员修炼之道
责任编辑:张伟 来源: it动力
相关推荐

2013-12-19 09:58:08

2012-04-28 09:14:50

编程编程语录

2020-04-06 12:31:25

编程程序员代码

2009-03-02 09:07:35

微软鲍尔默上网本

2012-11-22 14:00:26

程序员

2013-04-19 10:44:05

程序员禅道

2015-09-28 10:09:05

程序员新手

2014-07-16 09:34:44

2018-01-25 12:28:20

2011-12-26 17:18:25

程序员

2016-01-29 10:03:43

优秀程序员黄金法则

2012-04-19 12:50:51

Java

2016-02-29 11:24:23

程序员阅读经典书籍

2020-12-11 07:10:03

程序员

2011-06-11 20:59:12

程序员

2015-11-12 10:23:26

老程序员编程策略

2020-09-25 15:43:25

程序员网站技术

2012-07-20 11:16:26

程序员

2017-10-23 13:22:18

编程顶级程序员编码规则

2015-08-26 10:50:12

资深程序员编程经验
点赞
收藏

51CTO技术栈公众号