Design for Simplicity¶
Chapter Info
Calculating...
!!Simplicity is one of the hardest disciplines in system design. Complexity accumulates naturally as systems grow — through new requirements, dependencies, abstractions, exceptions, and decisions that each seem reasonable on their own. The challenge is to stay in control of it. Great systems are not simple by accident; they remain simple because complexity is questioned, contained, and deliberately placed.!!
What Is Simplicity?¶
!!Simplicity is the discipline of making a system as easy to understand and reason about as the problem allows.!! It does not mean making the system small, basic, or less capable. It means removing what does not need to be there, making what remains clear, and keeping necessary complexity from spreading. !!A simple system contains the complexity required by the problem — and as little accidental complexity as possible.!!
Complexity Outpaces Growth¶
Complexity rarely scales linearly with system size. Every new piece can introduce fresh dependencies, interactions, and failure modes — altering how existing parts connect, not just adding another item to the list. Keeping a system simple as it grows means controlling these interactions, not merely managing the number of components.
Distill to the Essence¶
!!“Simplicity is tackling the complexity of the world, and trying to distill something to the pure essence” (Eric Kim). In system design, that means breaking complexity down until its essential elements and relationships become clear. Separate what is fundamental from what is incidental or superficial.!! The goal is not to deny complexity, but to understand it well enough to reveal the simplest structure that faithfully represents what matters.
Eric Kim
K.I.S.S. — Keep It Simple, Stupid.
“Simplicity isn’t just removing the superfluous. Simplicity is tackling the complexity of the world, and trying to distill something to the pure essence.”
What Can I Remove?¶
!!Simplicity requires removing what the system does not truly need.!! Every extra feature, option, abstraction, layer, dependency, exception, or special case adds something that must be understood, tested, and maintained. Ask of each one: does the value justify the complexity? If not, remove it. !!Accept the complexity the problem requires. Remove the complexity the solution does not.!!
Hide Complexity Behind Simplicity¶
!!True simplicity does not require making all underlying complexity disappear.!! Some complexity is essential and must remain somewhere in the system. !!The architect’s role is to eliminate what is unnecessary, then contain and hide what remains behind clear interfaces and interactions.!! To the user, the system can feel simple even when substantial complexity exists underneath. The best designs do not expose complexity merely because they must contain it.
Grady Booch
“The task of the software development team is to engineer the illusion of simplicity.”
Too Simple Is Useless, Too Complex Is Unusable¶
!!True simplicity requires navigating two dangerous extremes. Too simple becomes useless — hiding essential details or failing to solve the real problem. Too complex becomes unusable — covering every possibility at the cost of understanding and maintainability.!! The goal is to preserve the complexity the problem requires while removing the complexity it does not.
Hidden Complexity: The Two Ways to Build¶
!!A simple design makes its structure and weaknesses easy to see. Complexity can do the opposite: layers, interactions, and special cases can hide problems without solving them.!! Prefer designs where problems are visible and easy to fix.
Tony Hoare
The Emperor’s Old Clothes (ACM Turing Award Lecture, 1980).
"There are two ways of constructing a software design: one way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies." — Tony Hoare
Benefits of Simplicity¶
Simplicity Makes Systems Easier to Change¶
!!Simple systems are easier to change because fewer dependencies, hidden assumptions, and special cases must move together.!! A local change is more likely to stay local, with fewer side effects and less coordination across the system. This reduces the cost and risk of evolving the software over time. Simplicity makes change smaller, safer, and easier to contain.
Robert C. Martin
Clean Architecture (2017).
Simplicity Makes Systems Easier to Understand¶
!!Simple systems make their structure and behavior easier to understand because relationships, responsibilities, and dependencies are easier to trace.!! Engineers spend less time reconstructing how the system fits together and more time working on the problem itself. Clarity also makes unusual decisions easier to notice and question instead of letting them disappear inside layers of complexity. !!A system is understandable when its structure helps explain itself.!!
Simplicity Reduces Risk¶
!!Every component, dependency, option, and special case creates another place where behavior can diverge from what we expect. Simpler systems have fewer interactions to reason about, fewer paths to test, and fewer hidden assumptions that can fail in production.!! They are also easier to diagnose when something does go wrong. Reducing unnecessary complexity reduces the surface area for mistakes, failures, and surprises.
Simplicity Preserves Future Options¶
Simple systems are easier to evolve because they commit to fewer unnecessary assumptions, dependencies, and constraints. !!Every decision that hardens the architecture reduces the range of changes that remain easy later. By keeping the structure minimal and postponing unnecessary, hard-to-reverse decisions, simplicity preserves room to adapt as requirements, scale, and technology change.!! Simplicity today creates freedom tomorrow.
Core Simplicity Principles¶
Simplicity is the result of deliberate design choices. It begins with understanding the real problem, challenging unnecessary requirements, and focusing on what matters most. These principles help distinguish essential complexity from accidental complexity and guide decisions about what to remove, simplify, or preserve.
Abstraction: How Humans Handle Complexity¶
!!Abstraction is how humans survive complexity. Human working memory can handle only a limited amount of information at once, making abstraction essential for understanding complex systems. Instead of handling every detail at once, we group, hide, and simplify — focusing only on what matters at a given level.!! In software, this means functions, modules, and APIs that let us reason about a system without holding all of it in our heads. As Fred Brooks noted, abstraction is not just a coding technique — it's a cognitive necessity. Without it, complexity overwhelms us.
Fred Brooks
The Mythical Man-Month (1975).
Simple Is Not the Same as Easy¶
!!Simple and easy are not the same. Easy describes the effort required now; simple describes the structure of the result.!! A solution may be easy to build quickly yet create tangled dependencies that make every future change harder. Conversely, a simple design may require more thought upfront because responsibilities and relationships must be made clear. !!Optimize for structural simplicity, not immediate convenience.!!
Rich Hickey
Simple Made Easy (Strange Loop, 2011).
Problem Precision Over Solution Elegance¶
!!Executing a solution with flawless technical brilliance is useless if it targets the wrong problem.!! One of the primary sources of accidental complexity in software architecture stems from rigorous engineering applied to a poorly understood or misframed need. !!Before investing design effort, building abstractions, or optimizing data flows, the fundamental prerequisite is to validate the exact nature of the problem.!! !!A simple, direct solution to the right problem is far more valuable than a complex architecture that perfectly solves a question nobody asked.!!
Max Kanat-Alexander
Adapted from Max Kanat-Alexander, Code Simplicity: The Fundamentals of Software (2012), Chapter 7, “What Problem Are You Trying to Solve?”
Prefer the Simplest Explanation That Works¶
!!When several designs solve the same problem, prefer the one that introduces the fewest unnecessary assumptions, concepts, components, and dependencies. This is Occam’s Razor applied to software design: do not multiply complexity without necessity.!! The simplest solution is not the one with the least code or effort, but the one that solves the problem while introducing the least additional structure.
Occam’s Razor
William of Ockham, 14th century.
"Entities should not be multiplied beyond necessity." — William of Ockham (attributed)
Among competing explanations, prefer the one that makes the fewest assumptions.
Challenge Requirements to Preserve Simplicity¶
!!Requirements shape complexity before architecture begins.!! A requirement that appears small can force additional components, special cases, integrations, or operational burden. !!Treat requirements as design inputs, not immutable constraints: understand the value behind them and challenge those whose cost in complexity exceeds the value they provide.!! Sometimes the simplest architecture comes not from finding a cleverer implementation, but from changing what the system is required to do.
Focus on the Vital Few¶
!!The Pareto principle suggests that a small part of a system often delivers most of its value, while the remaining edge cases, options, and refinements can account for a disproportionate share of its complexity. Simplicity means identifying the capabilities that matter most and designing them well before expanding into the long tail.!! The 80/20 split is not a mathematical rule, but a reminder: do not let the last 20% of value create 80% of the complexity.
Vilfredo Pareto and Joseph M. Juran
Pareto observed unequal wealth distribution in nineteenth-century Italy. Juran later named and popularized the broader heuristic as the Pareto principle, introducing the expression “vital few and useful many.”
Simplicity Comes from Clear Boundaries¶
!!A system becomes easier to reason about when each component has a clear responsibility, strong cohesion, and minimal coupling to the rest of the system.!! When unrelated concerns are intertwined, understanding or changing one thing requires understanding many others. Good boundaries contain complexity: each part can be understood, tested, changed, and replaced with minimal knowledge of what surrounds it.
Essential Complexity vs Accidental Complexity¶
Not all complexity is equal. !!Essential complexity comes from the problem itself — its business rules, constraints, scale, and required capabilities.!! !!Accidental complexity comes from the choices we make when implementing the solution: unnecessary abstractions, tangled dependencies, inconsistent patterns, and avoidable technical constraints.!! !!Understanding the difference is the first step toward simplicity: one must be managed, the other should be challenged.!!
Be Flexible Where It Matters¶
!!Flexibility is valuable when it serves a real need, but it is not free.!! A rigid design forces workarounds whenever requirements change; an overly flexible design burdens everyone with options, extension points, and behaviors they may never use. !!The goal is not to maximize flexibility or minimize it at all costs, but to identify where variation is genuinely needed and make those parts adaptable while keeping everything else straightforward.!! Be flexible where change is expected, and simple everywhere else.
Place Complexity Deliberately¶
Some complexity is unavoidable, but where it lives is a design choice. Spread across components, it increases coupling and makes the entire system harder to understand. Concentrated behind clear boundaries, it becomes easier to manage, automate, and evolve without affecting the rest of the system. Complexity that must exist should have an intentional home.
Convention Over Configuration¶
!!Every configuration option is another decision someone must understand and make. Convention over configuration reduces that burden by providing sensible defaults for the common case, requiring explicit configuration only when a system needs to deviate from them.!! Good conventions make the simple path the default path — reducing setup, cognitive load, and opportunities for inconsistency while preserving flexibility where it is actually needed.
Detecting Complexity¶
!!Complexity must be recognized before it can be reduced.!! It often accumulates gradually, hidden behind familiar practices and accepted inefficiencies. The challenge is to make this invisible burden visible before it becomes an accepted part of how the system or organization operates.
Recognize the Signals¶
!!Complexity is not always immediately visible. It often hides behind established habits, workarounds, and a gradual loss of productivity.!! When a simple change requires coordinating five teams, deployments become intimidating, or new engineers need weeks to become productive, these are warning signs of a system or organization growing too complex. !!Learning to recognize these signals allows us to address complexity before friction becomes the norm.!!
Measure the Cost of Complexity¶
!!Complexity cannot be measured by code size alone. What matters is how difficult the system is to understand, change, test, and operate.!! Look at coupling, dependency growth, the number of components affected by a change, test setup complexity, and the time required to make a safe modification. These measurements help reveal complexity that traditional code metrics may miss. !!Measure complexity by the friction it creates, not simply by the size of the system.!!
Trace Complexity to Its Source¶
Detecting complexity is only the first step. The real challenge is understanding what causes it. Fixing complexity only where it becomes visible may address the symptoms without eliminating the cause. The real source may be poorly defined domain boundaries, unclear ownership, unnecessary dependencies, conflicting requirements, or organizational structures that force excessive coordination. !!Before simplifying a complex solution, trace the complexity back to its source. Otherwise, we risk simplifying the symptoms while preserving the problem that created them.!!
Code Simplicity¶
Code simplicity applies the broader principles of simplicity to the smallest building blocks of software. It is a discipline of making everyday implementation choices that keep a codebase approachable as it grows. The following practices show how to put that discipline into action.
Good Naming Is the Foundation of Simplicity¶
Phil Karlton said there are only two hard things in computer science: cache invalidation and naming things. !!A good name is a free abstraction — it tells the reader what something is for without forcing them to read the implementation.!! A bad name is a tax every reader pays forever: each ambiguous identifier forces a small detour into context, multiplied by every future encounter. Simplicity at the code level starts here, before structure, before abstractions, before patterns. !!If you cannot name it clearly, you do not yet understand it clearly.!!
Phil Karlton
The aphorism about cache invalidation and naming is widely attributed to Karlton; no canonical primary publication is readily available.
Simplicity Over Cleverness¶
!!Clever code flatters its author; simple code serves its team.!! The chained ternary, the metaprogramming trick, the one-liner that compresses ten lines — each may feel elegant when written but charges a comprehension cost every time it is read. !!Code is read and changed repeatedly throughout its life, so cleverness taxes every future reader.!! Simplicity is the harder discipline because it values being understood over appearing sophisticated. Boring code is a feature, not a failure — choose the version a tired teammate can understand at midnight.
Keep Code Straightforward¶
Simple code follows a clear, direct path from intent to implementation. Deep nesting, excessive branching, hidden side effects, and unnecessary indirection make even small pieces of logic difficult to follow. Prefer straightforward control flow, explicit behavior, and small, focused functions. The goal is to minimize the mental effort required to understand what the code does and how it does it.
Design for the Next Reader¶
Software is read and changed far more often than it is first written. A simple design makes its intent, structure, and dependencies easy to discover. Engineers should not have to reconstruct the system from scattered details or hidden relationships before making a change. !!Design for the person who must understand the system six months from now — including yourself.!!
Wait for the Third Occurrence¶
The mirror image of premature optimization is premature abstraction. !!The first time you write something, write it; the second time, tolerate the duplication; the third time, consider the abstraction.!! With too few examples, it is easy to guess the wrong axis of variation and create an abstraction that future cases must fight against. !!A wrong abstraction can cost more than the duplication it was meant to remove.!! Let repetition reveal the pattern before you encode it.
Architectural Simplicity¶
As systems grow, their complexity comes not only from individual components, but increasingly from how those components interact and depend on one another. Architectural simplicity aims to keep this complexity under control, so that the system remains understandable, changes stay manageable, and growth does not make every part dependent on the whole.
Break the System into Modules¶
!!Modularity breaks a complex system into smaller, coherent parts.!! Each module has a focused responsibility and a clear boundary, so engineers can reason about one part without understanding the entire system at once. Good modularity reduces the scope of what must be held in mind and makes the structure of the system easier to navigate. !!Break the system into parts that can be understood on their own.!!
Encapsulation for Clarity and Safety¶
Once a system is broken into modules, each module needs a clear boundary that protects its internals. Encapsulation keeps the internal workings of components hidden from the outside world. !!By exposing only what is necessary and hiding the rest, encapsulation prevents external code from interacting with internal state, reducing errors and unintended side effects.!! This clear separation between interface and implementation makes components easier to reason about and the codebase less error-prone.
Decoupling for Flexibility¶
!!Decoupling minimizes what components need to know about each other.!! Components should depend on clear contracts rather than internal details, assumptions, or implementation choices. Fewer and more explicit dependencies make each part easier to understand, replace, and evolve without coordinating unnecessary changes across the system. !!Depend on what a component promises, not on how it works.!!
Isolate What Can Change Independently¶
!!Once complexity has been broken into its essential parts, isolate what can change, fail, or scale independently.!! Design components so that changes, failures, and scaling decisions can remain local rather than propagate across the system. The same principle appears in microservices, modular monoliths, bounded contexts, and fault-isolation boundaries. !!Separate what does not need to move, change, or fail together.!!
Abstraction: Simplifying by Hiding Complexity¶
The same cognitive mechanism becomes a design technique in software. Abstraction creates simplified models and explicit contracts that define what a component provides while hiding how it works. These contracts allow developers to understand, use, and modify systems without navigating their full implementation complexity. Good abstractions reduce what must be understood at once without hiding what must be known.
Every Layer Must Earn Its Place¶
!!Every layer has a cost.!! It adds something that must be understood, maintained, and navigated, and it increases the distance between a problem and its solution. Layers can be valuable when they hide complexity, create a useful boundary, or make the whole system easier to reason about. But a layer should never exist merely because another layer can be added. !!Keep only the layers whose value justifies the complexity they introduce.!!
Reuse Before You Build¶
!!Before building something new, look for a proven solution that already solves the problem well enough.!! Libraries, frameworks, shared internal components, and established tools can remove entire categories of design and maintenance work. Reuse is not about avoiding engineering; it is about spending engineering effort where it creates unique value. !!Solve common problems with proven solutions, and reserve custom work for what is truly specific to your system.!!
Choose Boring Technology¶
!!Every team has a finite budget for novelty — Dan McKinley calls it the "innovation token" budget.!! Spend three tokens on a new database, a new language, and a new orchestration platform, and you have none left for the actual product. Boring technology is boring because its failure modes are known, its operational behavior is familiar, its hiring pool is large, and solutions to common problems are already well documented. !!Save your innovation tokens for the problem only your company has; everywhere else, prefer the tool that is one step short of cutting edge.!!
Dan McKinley
“Choose Boring Technology” (2015).
Don’t Solve Problems You Don’t Have¶
!!The most common way to overpay on complexity is premature optimization — building for scale you don't have, adding abstraction for use cases that don't exist, designing extension points for requirements that may never come.!! It feels responsible but is often speculation. Document potential bottlenecks, plan for them, but don't implement until they're real. Even a good optimization has a cost: it makes code harder to read and maintain. !!Build for today. Pay the complexity price when the need is real, not merely anticipated.!!
Simplify Incrementally¶
Existing systems rarely allow a clean restart. !!Simplification must usually happen while the system continues to serve users.!! Create clear boundaries around the area you want to improve, replace or simplify one part at a time, move behavior gradually, and remove the old path when it is no longer needed. Patterns such as the Strangler Fig apply this approach at larger scales. !!Do not wait for a rewrite to make the system simpler — make each change leave it simpler than before.!!
Operational Simplicity¶
Operational simplicity extends design simplicity into the daily reality of running software. A system’s complexity is not defined only by how it is built, but also by what it demands from the people responsible for keeping it working. Operational decisions therefore deserve the same deliberate attention as architectural ones.
Make Operations Predictable and Repeatable¶
!!Operational simplicity comes from making routine actions consistent, predictable, and repeatable.!! Deployments, configuration changes, rollbacks, and recovery procedures should follow clear, standardized paths rather than depend on manual improvisation or knowledge held by a few experts. Automate repetitive steps, make outcomes observable, and design operations so that the same action under the same conditions produces the same expected result whenever possible. !!An operation should be a reliable process, not a new problem to solve each time.!!
Simplicity Matters Most When Things Break¶
A system may look simple when everything works and become impossible to understand during a failure. !!Operational simplicity means making behavior, dependencies, failure modes, and recovery paths easy to see when the system is degraded.!! Clear signals, explicit flows, and predictable failure behavior reduce the amount of reasoning required under pressure. !!A system is not truly simple if operating it requires reconstructing its architecture during every incident.!!
Transfer Complexity Instead of Owning It¶
!!Simplicity does not always require eliminating complexity. Sometimes the best strategy is to move it outside the system your team must own.!! Managed services let a provider take responsibility for difficult infrastructure concerns such as provisioning, patching, scaling, replication, backups, and operations. !!The complexity still exists — but someone else specializes in managing it.!! Deliberately transferring complexity can be as valuable as reducing it.
Organizational Simplicity¶
Simplicity cannot be achieved through architecture alone. Organizational structures, decision-making processes, ownership boundaries, and coordination requirements directly influence how software is designed, built, and maintained. Even the best engineering practices cannot compensate for an organization that creates unnecessary dependencies, delays, and complexity. Simplifying the organization is therefore part of simplifying the software.
Conway’s Law: Organization Shapes Architecture¶
Software architecture tends to reflect the communication structures of the organizations that build it. When teams are fragmented, responsibilities overlap, or communication requires crossing multiple organizational boundaries, these divisions often appear in the software itself. Designing a simpler system may require simplifying the organization behind it. Team boundaries, responsibilities, and communication paths should support the architecture we want to create.
Flatten the Organization¶
Every management layer introduces an additional level through which information and decisions may need to travel. While some layers provide valuable coordination, unnecessary layers slow decisions, increase bureaucracy, and create opportunities for micromanagement. Flatter organizations shorten decision paths, encourage delegation, and give teams greater autonomy. Managers with broader responsibilities must focus more on outcomes and less on controlling individual activities. The goal is not to eliminate management, but to remove layers that do not add sufficient value.
Push Decisions Down¶
Decisions should be made as close as possible to the people who understand the problem and its consequences. When routine choices require multiple approvals, management reviews, or alignment across hierarchical levels, bureaucracy slows the entire organization. Give teams clear responsibilities, decision boundaries, and the authority to act within them. Reserve escalation and additional oversight for decisions that genuinely exceed a team’s scope or carry significant risk. Governance should establish guardrails, not become an obstacle to everyday progress.
Reduce Coordination Dependencies¶
Every dependency between teams introduces communication, scheduling, negotiation, and potential delays. When completing a simple task requires coordinating with several other teams, organizational complexity becomes a bottleneck. Design teams and responsibilities so that most work can be completed independently, with minimal cross-team coordination. Just as loosely coupled software components are easier to change, loosely coupled teams can move faster without constantly waiting for one another.
Organize Around Clear Ownership¶
Clear ownership reduces organizational complexity by eliminating ambiguity around who makes decisions, maintains interfaces, and absorbs operational risk. When every service, module, or workflow has a single, unmistakable owner, teams spend less energy negotiating boundaries, waiting on handoffs, or duplicating effort—allowing architectural simplicity to stay intact as the organization scales.
Measure Outcomes, Not Outputs¶
Organizations often measure productivity through activities: features delivered, tickets closed, projects completed, or code produced. These metrics encourage more output, even when that output creates little value and introduces additional complexity. Measure success through the outcomes delivered to users and the business, not simply through the amount of work completed. When teams focus on results rather than volume, they have a stronger incentive to eliminate unnecessary features, processes, and complexity.
Decisions Eliminate Complexity¶
Indecision often creates complexity because organizations attempt to preserve multiple possibilities simultaneously. Instead of choosing a direction, teams introduce configuration options, alternative implementations, compatibility layers, and exceptions to accommodate unresolved disagreements. Clear decisions eliminate unnecessary alternatives and allow teams to converge on simpler solutions. When sufficient information is available, resolve unnecessary alternatives rather than preserving them indefinitely. Delay decisions that are costly to reverse, not decisions that merely require choosing a direction.
Standards Reduce Complexity¶
!!Standards reduce complexity by turning recurring decisions into shared answers.!! Without them, every team can choose its own tools, naming, interfaces, workflows, and practices — multiplying the number of patterns developers must learn and systems must support. A good standard captures a proven choice once and lets everyone reuse it without reconsidering the problem from scratch. Standards should not prevent justified exceptions, but they should make the common path predictable. !!Standardize what does not need to be different, so attention can stay on what actually does.!!
Collaborate Before You Reinvent¶
In large organizations, teams often solve the same problems independently because they lack visibility into one another’s work. This leads to duplicated platforms, overlapping services, inconsistent practices, and unnecessary maintenance costs. Make shared needs visible across teams, encourage collaboration, and establish common solutions when problems are not unique to a single team. Team autonomy should enable independent execution, not unnecessary duplication across the organization.
Simplicity in the Age of AI¶
AI is transforming software engineering, from how we design and write code to how we build and operate systems. What does this transformation mean for simplicity?
Is Simplicity Still Relevant?¶
Artificial intelligence can now handle levels of complexity that far exceed our cognitive limits. Where the human mind struggles to keep track of dozens of interactions, exceptions, or dependencies simultaneously, AI can analyze and manipulate these complex structures with unprecedented ease. If AI now allows us to manage such complexity, is simplicity still as essential in software design?
Simplicity Keeps Us in Control¶
If we allow AI to manage complexity without preserving clear contracts, observable behavior, and effective ways to intervene, we risk losing meaningful human control. Humans still need to understand system behavior, verify that its guarantees are respected, and retain the ability to diagnose failures and intervene when necessary, even without mastering every implementation detail. Simplicity makes that control possible.
Keep the What Simple, Let AI Handle the How¶
AI allows us to accept greater complexity in implementation, provided we keep our intentions clear. Business goals, contracts, and interfaces must remain explicit and understandable, while AI can handle more intricate technical details. Delegating the how to AI must not create a comprehension debt where code becomes easier to generate than to verify, debug, or evolve. Simplicity must be preserved through clear contracts, testable invariants, and observable behavior.
The Future of Simplicity: From Code to Systems¶
As AI takes over implementation, software engineering may evolve toward a radical separation of what a system must do from how it does it. Humans will define the architecture, responsibilities, interfaces, and rigorous, verifiable contracts, while AI will increasingly generate and maintain the implementations behind them. We may lose direct control over every line of code, but retain control over the system as a whole through explicit guarantees and continuous validation. Simplicity will remain essential at the system level — in architecture, contracts, processes, and organizational boundaries — even as the internal complexity of AI-driven implementations becomes increasingly opaque to humans.

























































