计算机科学家、作家和业界知名程序员对编程语言的看法是什么样的呢?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 的词条介绍)



“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 编译器有贡献。 )



“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 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)。” )



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

使用 Cobol 会残害脑子,故而其教学应视为刑事犯罪。—— 迪杰斯特拉



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



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

如果 Java 真有垃圾回收机制,那大部分程序在运行的时候都得自我删除了。—— 罗伯特·休厄尔(程序员)



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

Lisp 不是一门语言,是一张建筑材料。—— 艾伦·凯



“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 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  编译:伯乐在线 – 黄利民



收藏 评论


伯乐在线联合发起人,关注 IT 和互联网。 个人主页 · 我的文章 · 99 ·