QuoteProject
It is better to have 100 functions operate on one data structure than to have 10 functions operate on 10 data structures.
Alan Perlis
ShareWTF𝕏

Interpretation

What this quote means

Simplicity and efficiency in programming can lead to more manageable and maintainable code.

This quote by Alan Perlis emphasizes the preference for having a single, well-defined data structure that multiple functions can interact with, as opposed to having several distinct data structures each requiring their own functions. This approach not only encourages better organization and reusability of code but also enhances clarity and reduces complexity, making programming tasks easier to manage.

Themes

ProgrammingData StructuresFunctionsEfficiencySimplicity

In practice

Example use cases

In a coding workshop, a mentor may reference this quote to explain the importance of code organization.

More from Alan Perlis

Every program has (at least) two purposes: the one for which it was written and another for which it wasn't.
Alan PerlisRead
Because of its vitality, the computing field is always in desperate need of new cliches: Banality soothes our nerves.
Alan PerlisRead
In computing, turning the obvious into the useful is a living definition of the word "frustration".
Alan PerlisRead
A good programming language is a conceptual universe for thinking about programming.
Alan PerlisRead
Every reader should ask himself periodically β€œToward what end, toward what end?”—but do not ask it too often lest you pass up the fun of programming for the constipation of bittersweet philosophy.
Alan PerlisRead
C programmers never die. They are just cast into void.
Alan PerlisRead

Similar quotes

My emotional investment is in finding truth. If string theory is wrong, I'd like to have known that yesterday. But if we can show it today or tomorrow, fantastic.
Brian GreeneRead
... chemistry is a trade for people without enough imagination to be physicists.
Arthur C. ClarkeRead
Burning fossil fuels emits carbon dioxide. And carbon dioxide is a greenhouse gas that traps heat in the atmosphere. There is no debate about that. The link is as certain as the link between smoking and cancer.
Christine Todd WhitmanRead
Trying to capture the physicists' precise mathematical description of the quantum world with our crude words and mental images is like playing Chopin with a boxing glove on one hand and a catcher's mitt on the other.
George JohnsonRead
It is this potential for plasticity of the relatively stereotyped units of the nervous system that endows each of us with our individuality.
Eric KandelRead
I fell in love with the elegance and precision of genetic analysis and experimentation to answer profound biological questions.
David SuzukiRead

A little wisdom, now and then

Subscribe for the occasional hand-picked quote. No noise.

Quote by Alan Perlis | QuoteProject