下面的這些經典的引言來自英文,也許有些我翻譯的是不很好,因此,我提供了中英對照,若是有問題,請你們指正。
過早的優化是萬惡之源。Premature optimization is the root of all evil!
- Donald Knuth
在水裏行走和以一個需求規格進行軟件開發,有一點是相同的,那就是若是水或需求都被凍住不了,那麼行走和軟件開發都會變得容易。Walking on water and developing software from a specification are easy if both are frozen
- Edward V Berard
Hofstadter 定理:「一件事情老是會花費比你預期更多的時間,就算是你已經考慮過本條Hofstadter 定理」。It always takes longer than you expect, even when you take into account Hofstadter’s Law.
- Hofstadter’s Law
有些遇到問題的人老是會說「我知道,我會使用正則表達式」,那麼,你如今有兩個問題了。(意思是:你本想用正則表達式來解決你已有問題,但實際上你又引入了「正則表達式」的一個新問題)Some people, when confronted with a problem, think 「I know, I’ll use regular expressions.」 Now they have two problems
- Jamie Zawinski
調試程序的難度是寫代碼的兩倍。所以,只要你的代碼寫的儘量的清楚,那麼你在調試代碼時就不須要那麼地有技巧。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 Kernighan
用代碼行來衡量開發進度,無異於用重量來衡量制造飛機的進度。Measuring programming progress by lines of code is like measuring aircraft building progress by weight.
- Bill Gates
PHP被一些不合格的業餘人員造就成了一個小惡魔;而Perl則是被一些熟練的但不正當的專業人員造就成了一個超級大惡魔。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
在兩個場合我被問到:「請你告訴我,若是你給機器輸入了錯誤的數字,那麼,是否還能獲得正確的答案?」我並不能正確領會這類想法。(注意,本引言的做者姓Babbage,這個名字和神父同名,意思是,做者在反問提問的人,你是問我仍是向神父祈禱?)On two occasions I have been asked, ‘Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?’ I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.」
- Charles Babbage
在編程的時候,咱們必定要想像一下,之後維護咱們本身的代碼的那我的會成爲一個有暴力傾向的瘋子,而且,他還知道咱們住在哪裏?Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
- Rick Osborne
現代的編程是「程序員努力建一個更大更傻的程序」和「世界正在嘗試創造更多更傻的人」之間的一種競賽,目前爲止,後者是贏家。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.
- Rich Cook
我纔不關心個人代碼是否能在你的機器上工做!咱們不會給你提供機器。I don’t care if it works on your machine! We are not shipping your machine!
- Ovidiu Platon
我老是但願個人電腦可以像電話同樣容易使用;個人這個但願正在變成現實,由於我如今已經不知道怎麼去使用個人電話了。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
計算機是一種在人類歷史上全部發明中,可讓你比之前更快地犯更多的錯誤的發明,一樣,其也包括了「×××」和「龍舌蘭酒」這兩種發明的缺陷。A computer lets you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila.
- Mitch Ratcliffe
若是調試程序是一種標準的能夠剷除BUG的流程,那麼,編程就是把他們放進來的流程。If debugging is the process of removing software bugs, then programming must be the process of putting them in.
- E. W. Dijkstra
教一羣被BASIC先入爲主的學生,什麼是好的編程風格簡直是一件不可能的事。對於一些有潛力的程序員,他們所受到的智力上的傷害遠遠超過了重建他們的信心。It is practically impossible to teach good programming style to students that have had prior exposure to BASIC. As potential programmers, they are mentally mutilated beyond hope of regeneration.
- E. W. Dijkstra
理論上來講,理論和實際是同樣的。但實際上來講,他們則不是。In theory, theory and practice are the same. In practice, they’re not.
- Unknown
只有兩個事情是無窮盡的:宇宙和人類的愚蠢。固然,我如今還不能肯定宇宙是無窮盡的。Two things are infinite: the universe and human stupidity; and I’m not sure about the universe.
- Albert Einstein
Perl這種語言就好像是被RSA加密算法加密過的同樣。Perl - The only language that looks the same before and after RSA encryption.
- Keith Bostic
我愛「最終期限」,我喜歡「嗖嗖嗖」的聲音就像他們在飛同樣。I love deadlines. I like the whooshing sound they make as they fly by.
- Douglas Adams
說Java好的是由於它跨平臺就像好像說×××好是由於其能夠適用於一切性別。Saying that Java is good because it works on all platforms is like saying anal sex is good because it works on all genders
- Unknown
XML就像是一種強暴——若是它不能解決你的問題,那隻能說明你沒有用好它。XML is like violence - if it doesn’t solve your problems, you are not using enough of it.
- Unknown
愛因期坦說,天然界中的一切必定會有一個簡單的解釋,由於上帝並非反覆無常和獨裁的。固然,不會有什麼信仰能程序員像愛因期坦那樣感到舒服。Einstein argued that there must be simplified explanations of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer.
- Fred Brooks
文章:來源