舌尖上的程式語言

黃利民發表於2012-05-23

電腦科學家、作家和業界知名程式設計師對程式語言的看法是什麼樣的呢?scriptol 博主整理匯聚了一些#程式設計語錄#,現編譯如下。(有些語錄不好翻,故而都保留了英文原文。 :))

 

Algol 60 (Then taken in C)

“I couldn’t resist the temptation to put in a null reference, simply because it was so easy to implement. This has led to innumerable errors, vulnerabilities, and system crashes, which have probably caused a billion dollars of pain and damage in the last forty years.”
Tony (C.A.R.) Hoare.

“我沒有扛住誘惑,加入了空引用,因為這很容易實現。(不過)這已帶來了很多錯誤、缺陷和系統崩潰,在過去四十年中,這可能造成了十億美元的損失。” —— 託尼·霍爾

(注:託尼·霍爾實現了 Algol 60,維基百科關於 Algol 60 的詞條介紹)

 

Basic

“It is practically impossible to teach good programming style to students that [sic] have had prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.” E. W. Dijkstra in “The Threats to Computing Science” .

“想給那些已經接觸學習 Basic 的學生教好程式設計規範,幾乎不可能。因為這些潛在程式設計師的腦子已經被摧殘,並且沒有痊癒的希望。” —— 迪傑斯特拉在《The Threats to Computing Science》上說的。

(注: 迪傑斯特拉對 Algol 60 編譯器有貢獻。 )

 

C

“A C program is like a fast dance on a newly waxed dance floor by people carrying razors.” – Waldi Ravens. Programmer.

一段 C 程式,就像某人手拿剃刀,在剛打蠟的地板上跳快舞。—— Waldi Ravens(程式設計師)

 

“In My Egotistical Opinion, most people’s C programs should be indented six feet downward and covered with dirt.” – Blair P. Houghton. Programmer.

依我自我的觀點來看,大多數人的 C 程式應當縮排 6 英尺,並蓋滿了灰塵。—— 布萊爾·霍頓(程式設計師)

 

“Going from programming in Pascal to programming in C, is like learning to write in Morse code.” – J.P. Candusso. Programmer.

從 Pascal 程式設計轉到 C 程式設計,就像是在學用摩斯碼寫程式。—— J.P. Candusso (程式設計師)

 

“One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.” – Robert Firth. Author of programming books.

羅馬帝國崩潰的一個主要原因是沒有“零”,他們沒法表明他們的 C 程式已經成功執行完。—— 羅伯特·菲爾斯 (程式設計書作者)

 

“Writing in C or C++ is like running a chain saw with all the safety guards removed.” – Bob Gray. Author.

用 C 或 C++ 寫程式碼,就好像在沒有保護設施的鏈鋸上奔跑。—— 鮑勃·格雷(作家)

 

“It’s 5.50 a.m…. Do you know where your stack pointer is?” – Anonymous.

現在是凌晨 5:50…… 你知道你的棧指標在哪兒麼?—— 無名氏

 

C++

“C makes it easy to shoot yourself in the foot. In C++ it’s harder, but when you do, you blow off your whole leg.” – Bjarne Stroustrup. Creator of C++.

C語言可以讓你容易用槍打到自己的腳;而C++則更不容易打到腳,但如果你硬開槍,則會轟爛你整個腿。 —— Bjarne Stroustrup

C makes it easy to shoot yourself in the foot. In C++ it's harder, but when you do, you blow off your whole leg.

 

“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. Programmer.

程式語言進化過程:Fortran 是一種無型別的語言;C 是一種弱型別語言;Ada 是一種強型別語言;C++ 是一種高度言過其實的語言。—— Ron Sercely

 

“I invented the term ‘Object-Oriented’, and I can tell you I did not have C++ in mind.” – Alan Kay. Creator of Smalltalk.

我發明了“物件導向”這個術語,我也可以告訴你,我腦子中並沒有 C++。—— 艾倫·凱(Smalltalk 語言創造者)

 

“The latest new features in C++ are designed to fix the previously new features in C++.” – David Jameson. Author.

C++ 中的最新特性就是用來修正之前的新特性。—— David Jameson

 

“Fifty years of programming language research, and we end up with C++ ?” – Richard A. O’Keefe. Computer scientist.

五十年的程式語言研究,我們在 C++ 這結束了?—— Richard A. O’Keefe(電腦科學家)

 

“C++ has its place in the history of programming languages. Just as Caligula has his place in the history of the Roman Empire.” – Robert Firth.

在程式語言的歷史中,C++ 有其地位。就如同 Caligula 在羅馬帝國曆史也有其地位。—— 羅伯特·菲爾斯

(譯註:Caligula 是羅馬帝國第三個皇帝,是個暴君。)

 

“Java is C++ without the guns, knives, and clubs.” – James Gosling, co-inventor of Java.

Java 就是沒有槍支、刀具和棍棒的 C++。 —— 詹姆斯·高斯林(Java 之父)

 

“C++ is an horrible language. Even if the choice of C were to do *nothing* but keep the C++ programmers out, that in itself would be a huge reason to use C.” – Linus Torvalds, inventor of Linux.

C++ 是一種恐怖的語言。

(譯註:Linus 這事情的起因是這樣的:2007年,微軟的一名工程師Dmitry Kakurin在檢視了Linus 專為Linux核心開發的版本控制軟體 Git 原始碼之後,發現使用的是純 C 而非 C++,表示不能夠理解這種做法,他直言:“別拿可移植性說事兒,這是屁話(BS,bullshit)。” )

 

COBOL

“The use of COBOL cripples the mind; its teaching should therefore be regarded as a criminal offense.” – E.W. Dijkstra.

使用 Cobol 會殘害腦子,故而其教學應視為刑事犯罪。—— 迪傑斯特拉

 

Fortran

“FORTRAN is not a flower but a weed — it is hardy, occasionally blooms, and grows in every computer.” – Alan J. Perlis. Computer scientist and professor (Yale).

Fortran 不是一朵花,而是一棵雜草。它在每臺計算機上頑強成長,偶爾綻放。—— 艾倫·佩利(電腦科學家)

 

“FORTRAN, the infantile disorder, by now nearly 20 years old, is hopelessly inadequate for whatever computer application you have in mind today: it is now too clumsy, too risky, and too expensive to use.” – E. W. Dijkstra.

 

“FORTRAN was the language of choice for the same reason that three-legged races are popular.” – Ken Thompson. Co-creator of B, Unix, Plan 9 and the Go programming language.

 

Java

“If Java had true garbage collection, most programs would delete themselves upon execution.” – Robert Sewell. Programmer.

如果 Java 真有垃圾回收機制,那大部分程式在執行的時候都得自我刪除了。—— 羅伯特·休厄爾(程式設計師)

 

Lisp

“Lisp isn’t a language, it’s a building material.” – Alan Kay.

Lisp 不是一門語言,是一張建築材料。—— 艾倫·凱

 

Perl

“Perl is the only language that looks the same before and after RSA encryption.” – Keith Bostic. Programmer, created Sleepycat, contributed to free BSD unices.

Perl 語言是唯一一種用 RSA 加密後,前後看起來一樣一樣的程式語言。——  Keith Bostic(程式設計師, Sleepycat 軟體創造者,對 BSD 系統有大貢獻)

 

PHP

“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. Programmer.

PHP被不稱職的業餘人員搞成了一個小惡魔,而Perl卻是被熟練但反常的專業人員搞成了一個隱伏的大惡魔。—— 喬恩·裡本斯

 

Bash and other shells

“It is easier to port a shell than a shell script.” – Larry Wall. Creator of Perl.

移植 shell,比移植 shell 指令碼容易多了。—— 拉里·沃爾

 

And finally…

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

人世間只有兩類程式語言:常被人噴的,和沒人用的。—— Bjarne Stroustrup

 

 

原文:ScriptOL  編譯:伯樂線上 – 黃利民

【如需轉載,請標註並保留原文連結、譯文連結和譯者等資訊,謝謝合作!】

 

相關文章