The three timeless qualities of software: simple, correct, and fast enough

Models now write a growing share of software, and they write it in seconds. So the expensive step is no longer writing code but judging whether the code is good, and a judgment needs a definition to judge against. In my view the industry still has no shared definition of high-quality software. In my book Laminar Software Design I define high-quality software as software that is simple enough for humans to understand and change, works correctly as intended, and performs adequately for its purpose. In short, it is simple, correct, and fast enough. I did not pick these three qualities by taste: I derived them from the problems that no tool and no paradigm has removed since programming began.

The method behind this is older than my book. Several authors whose books became references each started from real problems and built principles to avoid them. Among them are Steve McConnell in Code Complete, Martin Fowler in Refactoring, Kent Beck in Test-Driven Development, Michael Feathers in Working Effectively with Legacy Code and Robert Martin in Clean Code. I add a filter of history to that method: a problem counts only if it came back under every new tool. Good software is then the opposite of those problems, in the way a doctor recognizes sickness by its symptoms more easily than anyone can define health.

Which problems define bad software

Many problems with software belong to one tool, one language or one paradigm, and they disappear when that tool goes. A problem that a new tool removes was never fundamental to software, so it cannot define what bad software means. Only the problems that return under every tool are persistent problems, and only they can carry a definition. Fred Brooks drew a similar line in “No Silver Bullet”, where he argued that past breakthroughs removed only the accidental difficulties of software, so what remains is essential. Barry Boehm later read the history of software engineering decade by decade to separate timeless principles from aging practices. Neither of them turned that history into a definition of quality. As far as I know, I am the first to define software quality by the problems that returned in every period of software since 1950. The method ignores the tools of each period and defines good software as the opposite of those problems.

Four problems that never went away

More than seventy-five years have passed since practical programming began around 1950, and in my book I split that time into six eras of fifteen years each, about half a working career. The first era (1950 to 1965) brought subroutines and the first high-level languages, and the crisis era (1965 to 1980) brought structured programming. Then came the era of objects (1980 to 1995), the testing era (1995 to 2010) and the continuous delivery era (2010 to 2025), and since 2025 the AI era. Each era removed some problems, yet four came back in every one: software that is hard to understand, hard to modify, incorrect, or too slow for its purpose.

Each solution moved the four problems into a new form instead of removing them. Microservices promised independent parts and moved the complexity into infrastructure. Many teams ended up with what Sam Newman in Building Microservices calls a distributed monolith: services that must still be deployed together. Every network hop between those services also added latency that a call inside one process never had. Large automated test suites made change safer and brought flaky tests in return. So the four problems belong to software itself and not to the tools of any era.

AI agents that write and test code do not remove the four problems either. Whoever reads their code, a person or a model, still has to foresee what a change breaks, whether the tests capture the real requirements and how fast the code must be. Language models learned from text and code that people wrote, and they read code through patterns of meaning rather than by running it. So it is plausible that they share some limits with human readers, though models and people are not the same. One study found that the places where a model is surprised by confusing code match the places where the brains of programmers react to the same confusion. Another study scored programs by how deeply their meaning nests and how far it diverges at branches, and the higher the score, the worse models did. When the programs were rewritten to lower the score without changing what they did, the pass rate of models on code translation rose from 42.2% to 46.5%. A third study found that models fail more often as the calls inside a task nest deeper and branch more.

How four problems become three qualities

If the four persistent problems define bad software, then good software is their opposite. Hard to understand turns into simple to understand, and hard to modify into simple to modify. In the same way, incorrect turns into correct, and too slow turns into fast enough. From that reversal comes the definition, which my book first builds for code from the evidence of code. The book then shows that it holds at every scale: a single method or class, a module, a whole application, or a system of many services.

High-quality software is simple enough for humans to understand and change, works correctly as intended, and performs adequately for its purpose.

Understanding and change share one word, simple, because of how the brain reads code. A reader builds a mental model of the code in working memory, helped by schemas, the patterns that long-term memory already holds. Three mechanisms keep that model cheap: recognition matches code against known schemas, prediction fills in what a known pattern contains, and compression turns a group of lines into a single item. Clear names and familiar structure feed all three, while a misleading name or a surprising pattern breaks them and forces the reader to stop and rebuild. All of it runs against hard limits, since working memory holds about four items at once, and what it holds fades once attention moves elsewhere. A change cannot begin until the code is understood, so the change and its possible effects must fit into the same working memory next to the model. That is why my book joins understanding and change into one quality, simplicity. In the words of the book, code is simple when readers can build a complete mental model fast and reason about changes without exceeding working memory limits.

John Ousterhout in A Philosophy of Software Design and Martin Fowler in Refactoring also put understanding and change side by side, and my book gives that pairing a cognitive reason. I call the three qualities of that definition the three timeless qualities, timeless because the four persistent problems behind them returned in every era. In its short form, the definition reads:

High-quality software is simple, correct, and fast enough.

Correctness and performance stay separate qualities, because better structure alone never made wrong code produce right results or slow code run fast enough. Performance is judged against what the purpose of the software needs, so it has a threshold and not a maximum.

Which quality comes first

Simplicity comes first, because it makes the other two qualities easier to reach. Code with boundaries that a reader can trust is easier to verify, and code that readers understand is code that tests can exercise without complex setup. The same small methods and clear structure that help readers also help compilers, so simple code and adequate performance are natural allies. My book turns this into an order of work: readability first, then flexibility, then performance, where readability and flexibility are simplicity to understand and simplicity to change. Understanding must come before preparing code for change, and both must come before optimization, because nobody can test or optimize code that nobody understands. Correctness does not compete in that order but runs alongside it, since types and design prevent errors while code is written and tests verify behavior at the end.

Practitioners have reached for similar qualities for decades, often in another order and each from a different side. The slogan “make it work, make it right, make it fast” gives them as steps of work, with working code before clean code. Herb Sutter and Andrei Alexandrescu put correctness, simplicity and clarity first in C++ Coding Standards, tied comprehension to confident change and judged speed against optimization goals. That so many routes arrive at similar qualities fits the history above, since each of them answers some of the same four persistent problems. I make that link explicit by deriving the three qualities from the four persistent problems: software that is hard to understand, hard to modify, incorrect, or too slow. Because understanding and modification join into simplicity, the derivation also shows why there are three qualities and not more.

What did not become a quality

Deriving the qualities from persistent problems also decides what stays out of them, and the history raised several other candidates. Legacy code looked like a problem of age, yet nobody could verify a change to it, which made it hard to modify and hard to keep correct. Unsafe change looked like a fifth problem, yet a change is safe when the code is simple enough to reason about and still correct afterwards. And information hiding, objects and automated tests were never problems at all: they are means to make code easier to understand, change or verify.

Security looked new when the web arrived, yet a security failure is code doing something other than what it should. So the code-level requirements of security are correctness requirements, and input from anyone on the internet made correct mean correct even while someone tries to break the code. That raised the cost of correctness but did not make security a separate quality. One quality does not mean one kind of knowledge, though. Correct software needs people who know the business rules, how attackers work and how to test, and each of those fields has its own deep body of knowledge. The quality says what the result must be, while the expertise to reach it comes from many fields.

What laminar means

The three qualities matter most together, because nobody needs simple code that does the wrong thing or correct code that is too slow to use. I wanted one name for that combined state and took it from fluid dynamics, where flow exists in two states. Laminar flow moves in ordered, parallel layers where every particle follows a predictable path and no energy is wasted on chaotic motion. Turbulent flow is the opposite, with chaotic paths and energy lost to swirls, as smoke shows when it rises in smooth ribbons and then breaks into eddies. Ordered flow maps to simple code, predictable flow to correct code, and efficient flow to code that is fast enough. Code is not a fluid, so the metaphor proves nothing on its own, and its use is to give one name to a concrete goal: the three qualities held at once. From that name comes the practice I named the book after:

Laminar Software Design is the practice of building software that is simple, correct, and fast enough at the same time.

Code that achieves all three qualities is what I call laminar code: simple to understand and change, correct in behavior, and fast enough for its purpose. Code that suffers from any of the four persistent problems is turbulent code: tangled, incorrect, or too slow for its purpose. The two words are not new names for good and bad. To call code bad says only that someone dislikes it. To call it turbulent points to one of the four problems, which anyone can name and check, while laminar asks for all three qualities at once. Laminar Software Design is the first work to make laminar and turbulent the central vocabulary of software design for code quality. Before it, the word turbulence appeared near code only in narrower senses, such as the turbulence Ruby gem of Chad Fowler, which charts churn against complexity.

Laminar flow does not happen by accident, since engineers control the conditions that keep it laminar. In the same way, laminar code needs deliberate design decisions. My book is about those decisions: which abstractions to create and which levels they form, so that software stays simple, correct, and fast enough.

What the definition changes

With such a definition, a judgment about software no longer rests on taste, whether it concerns a single method or a whole system of services. Instead of asking whether a design is good, anyone who reads it, a person or a model, can ask which of the four persistent problems it causes. A complaint that names none of the four is a preference, and a complaint that names one says why the code is turbulent and which quality it lacks. One question stays open, though, because my book grounds simplicity in how the human brain reads code. Models appear to share some limits of human readers, but which ones they share is still to be shown. Nor is it known yet how far code that is simple for a person is also simple for a model. Laminar Software Design holds the full history of the six eras and the cognitive grounding of simplicity, for readers who want the evidence behind the definition.

comments powered by Disqus