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 shall endeavour still further to prosecute this inquiry, an inquiry I trust not merely speculative, but of sufficient moment to inspire the pleasing hope of its becoming essentially beneficial to mankind.
Edward JennerRead
Any important disease whose causality is murky, and for which treatment is ineffectual, tends to be awash in significance.
Susan SontagRead
Inside of a living cell there are thousands of proteins that enable it to make more of itself and make your malaria drug, for instance. We don't understand those. We don't understand how they work together.
Frances ArnoldRead
It is ... a sign of the times-though our brothers of physics and chemistry may smile to hear me say so-that biology is now a science in which theories can be devised: theories which lead to predictions and predictions which sometimes turn out to be correct. These facts confirm me in a belief I hold most passionately-that biology is the heir of all the sciences.
Peter MedawarRead
[Decoding the human genome sequence] is the most significant undertaking that we have mounted so far in an organized way in all of science. I believe that reading our blueprints, cataloguing our own instruction book, will be judged by history as more significant than even splitting the atom or going to the moon.
Francis CollinsRead
A black hole really is an object with very rich structure, just like Earth has a rich structure of mountains, valleys, oceans, and so forth. Its warped space whirls around the central singularity like air in a tornado.
Kip ThorneRead

A little wisdom, now and then

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