It is better to have 100 functions operate on one data structure than 10 functions on 10 data structures.
艾伦·佩利
美国国家工程院院士、美国艺术与科学院院士、第一届图灵奖得主

艾伦·佩利(1922年4月1日-1990年2月7日),出生于美国宾夕法尼亚州的匹兹堡,美国国家工程院院士,美国艺术与科学院院士,第一届图灵奖得主,耶鲁大学尤金·希金斯计算机科学教授。

Functions delay binding; data structures induce binding. Moral: Structure data late in the programming process.

功能延迟绑定;数据结构诱导绑定。道德:在编程过程中后期构造数据。

艾伦·佩利名人名言哲理格言警句语录
艾伦·佩利

Syntactic sugar causes cancer of the semicolon.

句法糖引起分号的癌症。

艾伦·佩利名人名言哲理格言警句语录
艾伦·佩利

Every program is a part of some other program and rarely fits.

每个程序都是其他程序的一部分,很少适合。

艾伦·佩利名人名言哲理格言警句语录
艾伦·佩利

If a program manipulates a large amount of data, it does so in a small number of ways.

如果程序处理大量数据,则它会以几种方式进行处理。

艾伦·佩利名人名言哲理格言警句语录
艾伦·佩利

Symmetry is a complexity-reducing concept (co-routines include subroutines); seek it everywhere.

对称性是降低复杂性的概念(协同例程包括子例程);到处寻找它。

艾伦·佩利名人名言哲理格言警句语录
艾伦·佩利

It is easier to write an incorrect program than understand a correct one.

编写错误的程序要比理解正确的程序容易。

艾伦·佩利名人名言哲理格言警句语录
艾伦·佩利

A programming language is low level when its programs require attention to the irrelevant.

当一种程序语言的程序需要引起注意时,它是低级的。

艾伦·佩利名人名言哲理格言警句语录
艾伦·佩利

It is better to have 100 functions operate on one data structure than 10 functions on 10 data structures.

在一个数据结构上运行100个函数比在10个数据结构上运行10个函数要好。

艾伦·佩利名人名言哲理格言警句语录
艾伦·佩利

Get into a rut early: Do the same process the same way. Accumulate idioms. Standardize. The only difference(!) between Shakespeare and you was the size of his idiom list - not the size of his vocabulary.

尽早发车:以相同的方式执行相同的过程。积累习语。标准化。莎士比亚与您之间的唯一区别(!)是他的成语列表的大小,而不是他的词汇量。

艾伦·佩利名人名言哲理格言警句语录
艾伦·佩利

If you have a procedure with ten parameters, you probably missed some.

如果您的过程有10个参数,则可能会错过一些参数。

艾伦·佩利名人名言哲理格言警句语录
艾伦·佩利

Recursion is the root of computation since it trades description for time.

递归是计算的根源,因为它需要时间来描述。

艾伦·佩利名人名言哲理格言警句语录
艾伦·佩利

If two people write exactly the same program, each should be put into microcode and then they certainly won't be the same.

如果两个人编写的程序完全相同,则每个人都应放入微码中,然后他们肯定会不同。

艾伦·佩利名人名言哲理格言警句语录
艾伦·佩利

In the long run every program becomes rococo - then rubble.

从长远来看,每个程序都会变成洛可可式的,然后变成瓦砾。

艾伦·佩利名人名言哲理格言警句语录
艾伦·佩利

Everything should be built top-down, except the first time.

除第一次外,所有内容均应自上而下构建。

艾伦·佩利名人名言哲理格言警句语录
艾伦·佩利

Every program has (at least) two purposes: the one for which it was written, and another for which it wasn't.

每个程序都有(至少)两个目的:一个目的是为它编写的,另一个不是目的。

艾伦·佩利名人名言哲理格言警句语录
艾伦·佩利

If a listener nods his head when you're explaining your program, wake him up.

如果您在解释程序时听众点头,请叫醒他。

艾伦·佩利名人名言哲理格言警句语录
艾伦·佩利

A program without a loop and a structured variable isn't worth writing.

没有循环和结构化变量的程序不值得编写。

艾伦·佩利名人名言哲理格言警句语录
艾伦·佩利

A language that doesn't affect the way you think about programming, is not worth knowing.

不影响您对编程的思考方式的语言是不值得了解的。

艾伦·佩利名人名言哲理格言警句语录
艾伦·佩利