從去年開通@程序員的那些事 開始,陸陸續續發布了一些#編程語錄#。今天也在國外程序員 Senthil Kumar 的博客看到了他最喜歡的10條編程語錄。其中大部分已經分享過,現再次綜合分享給大家。(提示:正如廣為流傳的經典段子,有些經典語錄有多個版本,作者署名都不一樣。從下文就可以看出來。英文原文我保留了 Senthil Kumar 的。中文版本后面的作者署名是我當時所看到的署名。) 09. If debugging is the process of removing software bugs, then programming must be the process of putting them in. – Edsger Dijkstra 如果調試程序是移除臭蟲(軟件缺陷)的過程,那編寫程序就是把臭蟲放進來的過程! 迪杰斯特拉 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 軟件開發的時間通常是這樣的:一開始的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 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 設計軟件有兩種方法:一種是簡單到明顯沒有缺陷,另一種復雜到缺陷不那么明顯! 托尼·霍爾 06. Measuring programming progress by lines of code is like measuring aircraft building progress by weight. – Bill Gates 用代碼行數來衡量程序的開發進度,就好比用重量來衡量飛機的制造進度! 比爾·蓋茨 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 在編寫代碼的時候,你要經常想著,那個最終維護你代碼的人可能將是一個有暴力傾向的瘋子,并且他還知道你住在哪里! 里克·奧斯本 補充:關于這條語錄,StackOverflow 上也有個討論帖,給出的答案可能是 John Woods。 04. “The trouble with programmers is that you can never tell what a programmer is doing until it’s too late.” – Seymour Cray 程序員的問題是,你無法知道他在做什么,直到為時已晚。—— 西摩·克雷 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 今日之編程,已是竭力要建立更大更反白癡程序的軟件工程師,和正塑造更大更優質白癡的現實世界之間的比賽。目前來看,現實世界贏了! Rick Cook 02. “Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris.” – [url=http://en.wikiquote.org/wiki/Talkarry_Wall]Larry Wall[/url] 你們大部分人都熟悉程序員的美德。當然了,是這三種:懶惰、急躁、傲慢! 拉里·沃爾 (Perl 語言之父) 01. “Sometimes it pays to stay in bed on Monday, rather than spending the rest of the week debugging Monday’s code.” – Christopher Thompson 有的時候寧愿付錢讓你周一在床上待著,也不想讓你用這周剩下的時間去調試你在周一所寫的代碼。 —— 丹·所羅門 00. Walking on water and developing software from a specification are easy if both are frozen. – Edward V Berard 在水中行走,和根據一份需求開發軟件一樣,如果它們都“凍”住了,那就容易了。—— 愛德華·貝拉爾德 英文原文:Senthil Kumar 編譯:伯樂在線 – 黃利民 |