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

During the past three years spectacular progress has been made in increasing wheat, rice, and maize production in several of the most populous developing countries of southern Asia, where widespread famine appeared inevitable only five years ago
Norman BorlaugRead
What we want is scientists who don't become part of the policy discussion: All they do is produce science. If someone becomes an advocate, then I won't pay as much attention to their science.
George P. ShultzRead
Relativity is a purely scientific matter and has nothing to do with religion.
Albert EinsteinRead
I was an embarrassment to the department when they did research assessment exercises. A message would go round the department: 'Please give a list of your recent publications.' And I would send back a statement: 'None.'
Peter HiggsRead
Darwin's theory of evolution is a framework by which we understand the diversity of life on Earth. But there is no equation sitting there in Darwin's 'Origin of Species' that you apply and say, 'What is this species going to look like in 100 years or 1,000 years?' Biology isn't there yet with that kind of predictive precision.
Neil Degrasse TysonRead
Men think epilepsy divine, merely because they do not understand it. We will one day understand what causes it, and then cease to call it divine. And so it is with everything in the universe.
HippocratesRead

A little wisdom, now and then

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

Quote by Alan Perlis | QuoteProject