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

The moment I saw the model and heard about the complementing base pairs I realized that it was the key to understanding all the problems in biology we had found intractable - it was the birth of molecular biology.
Sydney BrennerRead
It turned out that the buckyball, the soccer ball, was something of a Rosetta stone of an infinite new class of molecules.
Richard SmalleyRead
Once you can reproduce a phenomenon, you are well on the way to understanding it.
Arthur C. ClarkeRead
Weapons of mass destruction violate more than individual lives - they cross international borders and jeopardize all people. They also drain resources that could be used instead for medicines, schools and other life-saving supplies. We must come together with even greater determination to prevent a WMD nightmare.
Ban Ki-MoonRead
Evolution is one of the two or three most primally fascinating subjects in all the sciences.
Stephen Jay GouldRead
What, then, is this blue sky, which certainly does exist, and which veils from us the stars during the day?
Camille FlammarionRead

A little wisdom, now and then

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

Quote by Alan Perlis | QuoteProject