编程名言名句

来源:互联网 发布:unity3d玩家模型在哪里 编辑:程序博客网 时间:2024/04/28 08:57

转载自: http://www.aqee.net/good-programming-quotes/



下面是一些迄今为止最好的关于编程的名言名句。阅读它们时相信你会有几分愉悦,你可以在一些会谈场合引用它们,一定能为你的团队吸引到不少的好程序员。

UNIX很简单。但需要有一定天赋的人才能理解这种简单。

UNIX is simple. But It just needs a genius to understand its simplicity. 

–Dennis Ritchie

软件在能够复用前必须先能用。

Before software can be reusable, it first has to be usable. 

–Ralph Johnson

优秀的判断力来自经验,但经验来自于错误的判断。

Good judgment comes from experience, and experience comes from bad judgment. 

–Fred Brooks

‘理论’是你知道是这样,但它却不好用。‘实践’是它很好用,但你不知道是为什么。程序员将理论和实践结合到一起:既不好用,也不知道是为什么。

Theory is when you know something, but it doesn't work.  Practice is when something works, but you don't know why it works. Programmers combine theory and practice: Nothing works and they don't know why. 

–佚名

当你想在你的代码中找到一个错误时,这很难;当你认为你的代码是不会有错误时,这就更难了。

It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free.

-Steve McConnell 《代码大全

如果建筑工人盖房子的方式跟程序员写程序一样,那第一只飞来的啄木鸟就将毁掉人类文明。

If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization. 

-Gerald Weinberg

项目开发的六个阶段:

  1. 充满热情
  2. 醒悟
  3. 痛苦
  4. 找出罪魁祸首
  5. 惩罚无辜
  6. 褒奖闲人
The Six Phases of a Project: 
Enthusiasm 
Disillusionment 
Panic 
Search for the Guilty 
Punishment of the Innocent 
Praise for non-participants 

–佚名

优秀的代码是它自己最好的文档。当你考虑要添加一个注释时,问问自己,“如何能改进这段代码,以让它不需要注释?”

Good code is its own best documentation. As you're about to add a comment, ask yourself, 'How can I improve the code so that this comment isn't  needed?' 
Improve the code and then document it to make it even clearer. 

-Steve McConnell 《代码大全

我们这个世界的一个问题是,蠢人信誓旦旦,智人满腹狐疑。

The trouble with the world is that the stupid are sure and the  intelligent are full of doubt. 

–Bertrand Russell

无论在排练中演示是如何的顺利(高效),当面对真正的现场观众时,出现错误的可能性跟在场观看的人数成正比。

No matter how slick (efficient) the demo is in rehearsal, when you do it in front of a live audience  the probability of a flawless presentation  is inversely proportional to the number of people watching, raised to the power of the amount of money involved. 

–佚名

罗马帝国崩溃的一个主要原因是,没有0,他们没有有效的方法表示他们的C程序成功的终止。

One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs. 

–Robert Firth

编程语言五十年的研究会以C++结束?

Fifty years of programming language research and we end up with C++? 

                                                                                                              ----Richard A. O'Keefe 


C程序员永远不会灭亡。他们只是cast成了void。

C programmers never die. They are just cast into void. 


–佚名

如果debugging是一种消灭bug的过程,那编程就一定是把bug放进去的过程。

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

–Edsger Dijkstra

你要么要软件质量,要么要指针算法;两者不可兼得。

You can either have software quality or you can have pointer arithmetic; you cannot have both at the same time. 

–(Bertrand Meyer)

(有思想的话…)

有两种方法能写出没有错误的程序;但只有第三种好用。

There are two ways to write error-free programs; only the third works. 

–Alan J. Perlis

用代码行数来测评软件开发进度,就相对于用重量来计算飞机建造进度。

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

–比尔-盖茨

最初的90%的代码用去了最初90%的开发时间。余下的10%的代码用掉另外90%的开发时间。

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

程序员和上帝打赌要开发出更大更好——傻瓜都会用的软件。而上帝却总能创造出更大更傻的傻瓜。所以,上帝总能赢。

Programmers are in a race with the Universe to create bigger and better idiot-proof programs 
The Universe is trying to create bigger and better idiots. 
So far the Universe is winning. 

–Anon

[英文原文:Good Programming Quotes ]

------------------------------------------------------------------------------------------
下面附上《 陪伴我作为程序员的9句名言 

“设计是一个发现问题、而不是发现解决方案的过程” —— Leslie Chicoine

“功能说明书里不存在可操作性” —— 37 Signals

“过去的代码都是未经测试的代码” —— Michael Feathers

“任何傻瓜都能写出计算机可以理解的代码。好的程序员能写出人能读懂的代码” ——Martin Fowler

“测试是来表明bug的存在而不是不存在” —— Edsger Dijkstra

“简单不先于复杂,而是在复杂之后” —— Alan Perlis

“Real developers ship” —— Jeff Attwood

“没有绝世神功” —— Frederick Brooks

“过去的33年里,我每天早上看着镜子问自己:“今天是我生命的最后一天吗?我是否要去做今天该做的事?”一天一天太多次是“不是”,我知道这需要改变…所有的事情 —— 所有身外的期望,所有的骄傲,所有的对困难和失败的恐惧 —— 这些东西在死亡面前立刻消失的无影无踪,只剩下真正重要的东西。想着自己即将死去,这是让我避免落入担心失去什么的陷阱里的最好的方法。” —— Steve Jobs

[英文原文:9 Quotes that stayed with me as a developer ]

=============================================================

Linux和Git之父Linus Torvalds曾说过这样一段话:
“Bad programmers worry about the code. Good programmers worry about data structures and their relationships.”
(低水平程序员总在考虑代码,高水平程序员总在考虑数据结构及其之间的关系)

来自 如何理解Linus Torvalds的“什么才是优秀程序员”的话

========扩展一下=========

Linus是个狂人,在wikiquote上收录了他的很多语录 。 俺节选了他一部分有代表性的语录翻译如下:

linus-torvalds-linus-torvalds-my-name-is-linus-and-i-am-your

My name is Linus Torvalds and I am your god.
我的名字是Linus Torvalds,我是你们的上帝。(在1998 Linux大会上的自我介绍)

If you still don’t like it, that’s OK: that’s why I’m boss. I simply know better than you do.
如果你还是不喜欢Linux,没关系,这就是为什么我在当家的原因:因为我对技术的理解比你更深。

“Regression testing”? What’s that? If it compiles, it is good; if it boots up, it is perfect.
“回归测试”?这是什么东西?如果代码能编译就是好的,如果它启动了,那就是完美的。

Talk is cheap. Show me the code.
空谈是不值钱的。给我看你的代码就好。

Those that can, do. Those that can’t, complain.
有能力的人一直在干活,没能力的人一直在抱怨。

Really, I’m not out to destroy Microsoft. That will just be a completely unintentional side effect.
真的,我没打算要摧毁微软。这种结果将会是完全无意中产生的副作用。

I’m always right. This time I’m just even more right than usual.
我就是永远正确。这次我比平时还要更正确一些。

Nobody actually creates perfect code the first time around, except me. But there’s only one of me.
实际上没人能一次就写出完美的代码,除了我。但是世界上只有一个我。

If you need more than 3 levels of indentation, you’re screwed anyway, and should fix your program.
如果你的代码里需要有超过三层的缩进,那么你已经搞砸了,应该修改你的代码。

Real quality means making sure that people are proud of the code they write, that they’re involved and taking it personally.
真正的质量意味着让程序员为他们写的代码自豪,参与到编写代码之中并把它当做自己个人的事情。

Standards are paper. I use paper to wipe my butt every day. That’s how much that paper is worth.
标准就是纸张。我每天都用纸张擦屁股。这就是这些纸张的价值所在。

I like offending people, because I think people who get offended should be offended.
我喜欢埋汰人,因为我觉得那些被埋汰的人活该被埋汰。

Portability is for people who cannot write new programs.
“可移植性”的概念是为那些不会写新程序的人准备的。





原创粉丝点击