1. 程式人生 > >10條經典程式設計語錄(轉)

10條經典程式設計語錄(轉)

If debugging is the process of removing software bugs, then programming must be the process of putting them in. – Edsger Dijkstra
如果除錯程式是移除臭蟲(軟體缺陷)的過程,那編寫程式就是把臭蟲放進來的過程。—— 迪傑斯特拉

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

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
設計軟體有兩種方法:一種是簡單到明顯沒有缺陷,另一種複雜到缺陷不那麼明顯。—— 託尼·霍爾

Measuring programming progress by lines of code is like measuring aircraft building progress by weight. – Bill Gates
用程式碼行數來衡量程式的開發進度,就好比用重量來衡量飛機的製造進度。—— 比爾·蓋茨

“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。
 
“The trouble with programmers is that you can never tell what a programmer is doing until it’s too late.” – Seymour Cray
程式設計師的問題是,你無法知道他在做什麼,直到為時已晚。—— 西摩·克雷
 
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
 
“Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris.” – Larry Wall
你們大部分人都熟悉程式設計師的美德。當然了,是這三種:懶惰、急躁、傲慢。—— 拉里·沃爾 (Perl 語言之父)
 
“Sometimes it pays to stay in bed on Monday, rather than spending the rest of the week debugging Monday’s code.” – Christopher Thompson
有的時候寧願付錢讓你週一在床上待著,也不想讓你用這周剩下的時間去除錯你在週一所寫的程式碼。 —— 丹·所羅門
 
Walking on water and developing software from a specification are easy if both are frozen. – Edward V Berard
在水中行走,和根據一份需求開發軟體一樣,如果它們都“凍”住了,那就容易了。—— 愛德華·貝拉爾德