有關程序的50個至理名言

1. "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

有兩種構成軟件設計方案的途徑,一種是把它做得簡單到沒有沒有漏洞,一種是把它做到複雜的看不出漏洞。

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

編程的時候好像那個維護你代碼的人是一個知道你住處的有暴力傾向的精神病患者。

3. "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program.”- Linus Torvalds

優秀的程序員編程不是爲了名或利,僅僅因爲純粹的樂趣。

4. "On two occasions I have been asked [by members of Parliament]: 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am of confusion of ideas that could provnot able rightly to apprehend the kind oke such a question." - Charles Babbage

有兩次我被國會議員問道:“Mr.Babbage,如果輸入計算機錯誤的數據,會得出正確的答案嗎?’——我根本無法理解能產生此種問題的大腦的混亂邏輯。”

5. "To iterate is human, to recurse divine.”- L. Peter Deutsch

人理解迭代,神理解遞歸。

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

程序員的問題就是,不到最後,你根本不知道他在幹什麼。

7. "Most software today is very much like an Egyptian pyramid with millions of bricks piled on top of each other, with no structural integrity, but just done by brute force and thousands of slaves.”- Alan Kay

現在的大部分軟件和古埃及金字塔:由成千上百的石塊堆砌而成,沒有結構,由大量的奴隸建立起來。

8. "Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris.”- Larry Wall

正如大家所知道的那樣,程序員有三點突出的美德:懶、沒耐心、自大狂。

9. "First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack.”- George Carrette

首先學習計算機理論知識,然後形成自己的編程風格,然後忘掉所學的東西,jist hack!

10. "People think that computer science is the art of geniuses but the actual reality is the opposite, just many people doing things that build on each other, like a wall of mini stones."- Donald Knuth

人們認爲計算機是天才的藝術,但是事實卻恰恰相反:很多人的工作是建立在在彼此的基礎之上,就像一條由小石頭拼成的小路一樣。

11. "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan

調試一段程序的難度是寫出這段程序的難度的兩倍,因此,如果你的代碼儘可能清楚,那麼你就不用費力的調試它。

12. "Measuring programming progress by lines of code is like measuring aircraft building progress by weight."- Bill Gates

以代碼行數衡量程序開發進度就像用重量衡量飛機制造過程一樣荒誕。

13. "Sometimes it pays to stay in bed on Monday, rather than spending the rest of the week debugging Monday's code." - Christopher Thompson

有時週一寧願休息而不是花一週餘下的時間調試周一的代碼。

14. "I don't care if it works on your machine! We are not shipping your machine!" - Vidiu Platon

我不在乎它是否能在你機器上工作,我不負責向你提供機器。

15. "Computer system analysis is like child-rearing; you can do grievous damage, but you cannot ensure success." - Tom DeMarco

計算機系統分析就像撫養孩子,你可以做劇烈的破壞,但是不能確保成功。

16. "Beware of bugs in the above code; I have only proved it correct, not tried it." - Donald E. Knuth

當心上面代碼裏的漏洞,我只是想證明它是正確的而不是測試它。

17. "If McDonalds were run like a software company, one out of every hundred Big Macs would give you food poisoning, and the response would be, ‘We’are sorry, here’s a coupon for two more."- Mark Minasi

18. “The best programmers are not marginally better than merely good ones. They are an order-of-magnitude better, measured by whatever standard: conceptual creativity, speed, ingenuity of design, or problem-solving ability.”- Randall E. Stross

19. "Learning to program has no more to do with designing interactive software than learning to touch type has to do with writing poetry" - Ted Nelson

20. "I invented the term 'Object-Oriented', and I can tell you I did not have C++ in mind." - Alan Kay

我發明了面向類的方法,但是可以告訴你我沒考慮C++。

21. "It is easier to port a shell than a shell script." - Larry Wall

22. "Perl – The only language that looks the same before and after RSA encryption."- Keith Bostic

Perl是唯一一種加密前後看起來一樣的語言。

23. "Programming is like kicking yourself in the face, sooner or later your nose will bleed." - Kyle Woodbury

編程就像撞在你臉上一樣,遲早你的鼻子會流血的。

24. "PHP is a minor evil perpetrated and created by incompetent amateurs, whereas Perl is a great and insidious evil, perpetrated by skilled but perverted professionals." - Jon Ribbens

PHP被一些不合格的業餘人員造就成了一個小惡魔;而Perl則是被一些熟練的但不正當的專業人員造就成了一個超級大惡魔。

25. "You can’t have great software without a great team, and most software teams behave like dysfunctional families.”- Jim McCarthy

離開優秀的團隊你不可能有優秀的軟件,很多開發團隊像不良家庭一樣。

26. "In theory, theory and practice are the same. In practice, they’re not."- Yoggi Berra

理論上,理論和實際應該一樣的,但實際上,理論和實際不完全相同。

27. "C is quirky, flawed, and an enormous success." - Dennis M. Ritchie

C語言是奇怪而又缺陷的,但是巨大的成功。

28. "Perfection in design is achieved, not when there is nothing more to add, but when there is nothing left to take away."- Antoine de Saint-Exupery

應當是無從消減而非無能增加的時候,就達到了完美的境界。

29. "Talk is cheap. Show me the code." - Linus Torvalds

語言是不值錢的,給我代碼。

30. "Python's a drop-in replacement for BASIC in the sense that Optimus Prime is a drop-in replacement for a truck." - Cory Dodt

Python是一種BASIC語言的替代品的觀點就像Optimus是卡車的替代品一樣。

31. "Good design adds value faster than it adds cost."- Thomas C. Gale

優秀的設計增加價值速度比增加成本的速度更快。

32. "The evolution of languages: FORTRAN is a non-typed language. C is a weakly typed language. Ada is a strongly typed language. C++ is a strongly hyped language." - Ron Sercely

編程語言的進化史:FORTRAN是一種無類型語言,C是弱類型語言,Ada是強類型語言,C++是類型過度語言。

33. "When someone says: 'I want a programming language in which I need only say what I wish done', give him a lollipop."- Alan J. Perlis

當我聽到有人說”我想有這麼一用語言,我所要做的就是說出我想實現的東西“,——還是趕緊給他個棒棒糖吧。

34. "In My Egotistical Opinion, most people's C programs should be indented six feet downward and covered with dirt." - Blair P. Houghton

很自我的觀點認爲,大部分大人的C語言應該縮進6字節並蓋滿灰塵。

35. "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

長久以來我一直很困惑的是如此昂貴如此間斷的東西竟然這麼沒用,但是突然我明白了,電腦就是能做難以置信的巧妙的事情的愚蠢的機器,而程序員就是具有做出難以置信的愚蠢事情的聰明的人,他們搭配的如此完美。

36. "FORTRAN is not a flower but a weed — it is hardy, occasionally blooms, and grows in every computer." - Alan J. Perlis

FORTRAN不是鮮花而是野草,它在每一臺電腦裏瘋狂的生長。

37. "In the one and only true way. The object-oriented version of 'Spaghetti code' is, of course, 'Lasagna code'. (Too many layers)." - Roberto Waltman

在這種唯一正確的方式下,面向對象的Spaghetti code就是Lasagna code。

38. "The use of COBOL cripples the mind; its teaching should therefore be regarded as a criminal offense." - E.W. Dijkstra

39. "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

鑑於當前計算機程序的缺陷,軟件開發仍然是一門黑色藝術,不能別稱爲一種工程學科。

40. "Fine, Java MIGHT be a good example of what a programming language should be like. But Java applications are good examples of what applications SHOULDN’T be like.”- pixadel

JAVA明確樹立了程序應該有的樣子,但是JAVA應用程序確定了應用不應該有的樣子。

41. "I think Microsoft named .Net so it wouldn’t show up in a Unix directory listing.”- Oktal

我想因爲微軟命名NET,因此它沒有出現在UNIX操作系統字典裏。

42. "Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering

不必擔心它能不能正常工作,要是所有工作都運行完好,你會失業的。

43. "Computer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter.”- Eric S. Raymond

計算機教育並不比學習更能造就程序專家,就像顏料能使人成爲繪畫專家一樣。

44. "I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone."- Bjarne Stroustrup

我總是希望我的電腦能夠像電話一樣容易使用;我的這個希望正在變成現實,因爲我現在已經不知道怎麼去使用我的電話了。

45. "A C program is like a fast dance on a newly waxed dance floor by people carrying razors." - Waldi Ravens

C程序就像在一個打過蠟的地面上跳舞一樣。

46. "A programming language is low level when its programs require attention to the irrelevant." - Alan J. Perlis

編程語言一旦和車上不相干的目的就是低水平的語言。

47. "They don't make bugs like Bunny anymore." - Olav Mjelde

漏洞不向復活節兔子一樣了。

48. "Walking on water and developing software from a specification are easy if both are frozen." - Edward V Berard

在目的明確的基礎上開發軟件就像在結冰的水上行走一樣簡單。

49. "Lisp isn't a language, it's a building material." - Alan Kay

LISP不是一種語言,而是一種材料。

50. "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning." - Rick Cook

現代的編程是“程序員努力建一個更大更傻的程序”和“世界正在嘗試創造更多更傻的人”之間的一種競賽,目前爲止,後者是贏家。

發佈了40 篇原創文章 · 獲贊 3 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章