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

I am actually weary of telling people that I do not pretend to adduce [direct] evidence of one species changing into another, but I believe that this view is in the main correct, because so many phenomena can thus be grouped end explained.
Charles DarwinRead
We've all been sick; we're all afraid of infection. I think the easiest application to help people understand what quorum sensing is and why it's important to study is to tell them that if we could make the bacteria either deaf or mute, we could create new antibiotics.
Bonnie BasslerRead
If we are to define science, ... it does not consist so much in knowing, nor even in "organized knowledge," as it does in diligent inquiry into truth for truth's sake, without any sort of axe to grind, nor for the sake of the delight of contemplating it, but from an impulse to penetrate into the reason of things.
Charles Sanders PeirceRead
Climate change: It's here. If we don't react, war, pestilence and famine will follow close behind
Rajendra K. PachauriRead
Science is a collaborative enterprise, spanning the generations. When it permits us to see the far side of some new horizon, we remember those who prepared the way - seeing for them also.
Carl SaganRead
The introduction of the cipher 0 or the group concept was general nonsense too, and mathematics was more or less stagnating for thousands of years because nobody was around to take such childish steps.
Alexander GrothendieckRead

A little wisdom, now and then

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