Fork me on GitHub


[轉] 程式設計語錄

A good programmer is someone who looks both ways before crossing a one-way street.
-- Doug Linder, 系統管理員

A most important, but also most elusive, aspect of any tool is its influence on the habits of those who train themselves in its use. If the tool is a programming language this influence is, whether we like it or not, an influence on our thinking habits.
-- Edsger Dijkstra, 計算機科學家

Being abstract is something profoundly different from being vague... The purpose of abstraction is not to be vague, but to create a new semantic level in which one can be absolutely precise.
-- Edsger Dijkstra

Besides a mathematical inclination, an exceptionally good mastery of one's native tongue is the most vital asset of a competent programmer.
-- Edsger Dijkstra

C 讓你很容易搬石頭砸自己的腳;C++ 雖然比較不容易做到,但是如果做到的話,你可能會打爛整隻腳。
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg.
-- Bjarne Stroustrup, C++ 程式語言開發者

Commentary: most debugging problems are fixed easily; identifying the location of the problem is hard.
-- 不知道是誰

Considering the current sad state of our computer programs, software development is clearly still a black art, and cannot yet be called an engineering discipline.
-- Bill Clinton, 美國前總統

For a long time it puzzled me how something so expensive, so leading edge, could be so useless, and then it occurred to me that a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match.
-- Bill Bryson, author, from Notes from a Big Country

只要有足夠的眼睛,就可以讓所有的 Bug 浮現(也就是,有足夠多的測試者和開發者,幾乎所有的問題都可以很快地發現、並且被修正)
Given enough eyeballs, all bugs are shallow (e.g., given a large enough beta-tester and co-developer base, almost every problem will be characterized quickly and the fix obvious to someone).
-- Eric S. Raymond, programmer and advocate of open source software, from The Cathedral and the Bazaar

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, software engineer and author, from 《Code Complete》

Hey! It compiles! Ship it!
-- 不知道是誰

Inside every well-written large program is a well-written small program.
-- Charles Antony Richard Hoare, 電腦科學家

It should be noted that no ethically-trained software engineer would ever consent to write a DestroyBaghdad procedure. Basic professional ethics would instead require him to write a DestroyCity procedure, to which Baghdad could be given as a parameter.
-- Nathaniel S. Borenstein, 電腦科學家

Managing programmers is like herding cats.
-- 不知道是誰

Measuring programming progress by lines of code is like measuring aircraft building progress by weight.
-- Bill Gates, 微軟共同創辦人

More good code has been written in languages denounced as bad than in languages proclaimed wonderful -- much more.
-- Bjarne Stroustrup, 《The Design and Evolution of C++》

Programs must be written for people to read, and only incidentally for machines to execute.
-- Harold Abelson 和 Gerald Jay Sussman,
電腦科學家、《The Structure and Interpretation of Computer Programs》作者

Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
-- 不知道是誰

Simplicity is prerequisite for reliability.
-- Edsger Dijkstra

C 程式語言--這是一種結合了組合語言的靈活性和組合語言的強大能力的語言。
The C programming language -- a language which combines the flexibility of assembly language with the power of assembly language.
-- 不知道是誰

前 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, 貝爾實驗室的物件導向程式專家

The important point is that the cost of adding a feature isn't just the time it takes to code it. The cost also includes the addition of an obstacle to future expansion. Sure, any given feature list can be implemented, given enough coding time. But in addition to coming out late, you will usually wind up with a codebase that is so fragile that new ideas that should be dead-simple wind up taking longer and longer to work into the tangled existing web. The trick is to pick the features that don't fight each other.
-- John Carmack, 電腦遊戲程式設計師

The key to performance is elegance, not battalions of special cases. The terrible temptation to tweak should be resisted unless the payoff is really noticeable.
-- Jon Bently 和 M. Douglas McIlroy, 貝爾實驗室的電腦科學家

最後一個用 C 寫出來的好作品,是法蘭茲‧舒伯特的第九號交響曲。(C 大調…)
The last good thing written in C was Franz Schubert's Symphony Number 9.
-- Erwin Dieterich, 程式設計師

使用 C++ 的問題在於他的語言中有很強烈的傾向,你必須要在你做任何事之前知道所有事情。
The problem with using C++ ... is that there's already a strong tendency in the language to require you to know everything before you can do anything.
-- Larry Wall, Perl 語言的開發者

The sooner you start to code, the longer the program will take.
-- Roy Carlson, University of Wisconsin

The value of a prototype is in the education it gives you, not in the code itself.
-- Alan Cooper, 《The Inmates are Running the Asylum》作者

There are only two kinds of programming languages: those people always bitch about and those nobody uses.
-- Bjarne Stroustrup

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.
-- Charles Antony Richard Hoare

Ugly programs are like ugly suspension bridges: they're much more liable to collapse than pretty ones, because the way humans (especially engineer-humans) perceive beauty is intimately related to our ability to process and understand complexity. A language that makes it hard to write elegant code makes it hard to write good code.
-- Eric S. Raymond

Weeks of programming can save you hours of planning.
-- 不知道是誰

When a programming language is created that allows programmers to program in simple English, it will be discovered that programmers cannot speak English.



No comments:

Post a Comment