Software Design Principles
Core Design Principles for Software Developers
Software design is not only about choosing programming languages, frameworks, or technical patterns. It is also about developing the habits of thought that help software remain useful, understandable, and adaptable over time. The central idea in this lesson is that good software design should make change easier rather than harder.
What Makes a Software Design Good?
A common but weak definition of good design is that a design is good simply because its creator made it. That definition is subjective and does not provide a reliable way to evaluate the result. A stronger definition must focus on how the design behaves when requirements change.
A practical definition is:
A good software design is one that can be changed with a reasonable amount of time and effort.
Software rarely remains exactly as it was when first created. Requirements change, users request new capabilities, defects are discovered, and the surrounding systems evolve. Therefore, a design that works only for the original requirements may still be a poor design if even small modifications require extensive effort.
The cost of change is an important measure because software design is judged not only by what the system does today, but also by how easily it can support what it needs to do tomorrow.
For example, imagine a system in which a business rule is duplicated in ten different locations. The system may behave correctly at first. However, when the rule changes, a developer must find and update all ten copies. Missing even one copy could produce inconsistent behavior. A design that centralizes or clearly organizes the rule would make the same change safer and less expensive.
The Problem with Evaluating Design Too Late
There is a difficulty with defining good design as “a design whose changes were inexpensive.” By the time a major change exposes the weaknesses of a design, too much time may already have been spent building on top of it.
A team should not wait until a difficult change occurs before asking whether its design is adaptable. Instead, developers can test the design proactively by subjecting it to likely changes during development.
This means asking questions such as:
- What if this requirement changes?
- What if another type of user is added?
- What if the system must support a new variation?
- What part of the design would need modification?
- Would one change force unrelated parts of the system to change?
If the design handles these hypothetical changes cleanly, it is showing signs of flexibility. If every imagined change produces widespread modifications, the design may need to be improved before more code depends on it.
Design Is an Iterative Activity
A high-quality design is almost impossible to produce perfectly on the first attempt. Developers often want to write the code once, finish it, and move on. However, many complex human activities require multiple attempts, prototypes, and revisions before reaching a strong result.
The same principle applies to software. A first implementation is often an exploration of the problem. Through writing, testing, reviewing, and revising, developers learn more about:
- What the requirements actually mean
- Which parts of the design are awkward
- Where responsibilities belong
- Which assumptions were incorrect
- How the system may need to evolve
The first version is therefore not necessarily the final design. It is often an opportunity to discover what the final design should become.
A useful way to express this idea is that software is not truly written once; it is continually rewritten. Rewriting does not always mean discarding the entire system. It can mean reorganizing code, clarifying responsibilities, removing duplication, improving interfaces, or replacing an approach that no longer serves the system well.
Why Iteration Matters
In other creative fields, major works are commonly developed through drafts, sketches, prototypes, and revisions. A finished result may appear simple or complete, but it often represents many previous attempts.
Software development should be viewed similarly. A developer should allow time for the design to mature rather than assuming that the first solution is automatically the best one. Iteration provides opportunities to improve both the code and the understanding of the problem.
This is especially important because relevant software must evolve. If a program never needs to change, it may indicate that the project was abandoned or canceled rather than that the design was perfect. Software that continues to provide value usually encounters new requirements and changing circumstances.
Consequently, a design should deliberately make future change possible. The goal is not to predict every future requirement. That would be impossible. The goal is to avoid making change unnecessarily difficult.
Because useful software must evolve, its design should preserve the ability to change.
Think About It
If a system works correctly today but requires changes in twenty separate locations whenever one business rule changes, should it be considered well designed? The important issue is not only current correctness, but also the cost and risk of future modification.
The Human Foundations of Good Design
Technical techniques matter, but software design is also influenced by human behavior. A developer’s attitude can either support or obstruct improvement.
Two important habits are:
- Letting go of ego
- Remaining unemotional about solutions
These habits make it easier to evaluate designs honestly and revise them when necessary.
Letting Go of Ego
The first major step toward better design is letting go of personal ego. Developers can become attached to their work because it represents their effort, creativity, and judgment. A design may feel like part of its creator’s identity:
- “This is my design.”
- “I created this.”
- “This is the approach I chose.”
That attachment can make criticism feel personal. Once a developer believes that criticism of the design is criticism of the developer, improvement becomes much more difficult.
No developer is perfect. Human limitations mean that the first design may contain mistakes, unnecessary complexity, or assumptions that later prove incorrect. Accepting this is not a weakness; it is a practical starting point for producing better software.
Letting go of ego allows a developer to ask more useful questions:
- Is this design helping the system?
- Is there a simpler approach?
- What weaknesses do other people see?
- What can be learned from this criticism?
- Would another solution make change easier?
The focus shifts from defending the original work to improving the result.
Healthy and Unhealthy Ego
The goal is not to eliminate all ego. Some degree of pride, motivation, and passion can encourage developers to care about quality. A developer who feels no connection to the work may lack the energy to improve it.
The important distinction is between useful and harmful forms of ego. The source compares ego to cholesterol: some forms may be beneficial, while excessive or harmful forms create problems.
Healthy professional pride can encourage a developer to:
- Take responsibility for the quality of the work
- Care about craftsmanship
- Persist through difficult problems
- Feel motivated to learn and improve
Unhealthy ego can cause a developer to:
- Reject useful criticism
- Defend a design simply because it is personal
- Refuse to admit mistakes
- Treat alternative ideas as threats
- Prioritize being right over solving the problem
Good design requires enough confidence to contribute ideas and enough humility to replace them when a better solution appears.
Remaining Unemotional About Solutions
A second important habit is to remain unemotional about particular solutions. This does not mean being indifferent to the software or lacking concern for quality. It means separating commitment to the problem from attachment to one specific answer.
A developer should care deeply about solving the problem well, but should not become emotionally committed to a particular implementation merely because it was the developer’s own idea.
This distinction can be stated as follows:
- The problem deserves commitment.
- The solution deserves evaluation.
An idea should be treated as a proposal rather than a possession. A constructive attitude is:
Here is one possible approach. If another approach solves the problem better, it should be considered.
This creates room for discussion, experimentation, and improvement. The objective becomes finding the strongest design, not proving that the first proposed design was correct.
Why Emotional Attachment Harms Design
Suppose a developer creates a design and later discovers that a simpler approach would be easier to maintain. If the developer is emotionally attached to the original design, several unproductive reactions are possible:
- Defending the original approach without examining the evidence
- Ignoring valid concerns
- Treating suggestions as personal criticism
- Continuing with a weak design to avoid admitting a mistake
These reactions increase the cost of change—the exact result that good design is supposed to prevent.
An unemotional approach makes revision normal. Developers can compare alternatives based on clarity, flexibility, complexity, and maintainability rather than on who proposed them.
Think About It
When a design receives criticism, is the developer defending the quality of the software or defending personal ownership of the idea? Separating those two reactions is a major part of professional design judgment.
The Importance of Constructive Challenge
Good design benefits from people who challenge one another’s ideas. A team should not consist only of people who agree automatically. At the same time, disagreement should be directed toward improving the software rather than attacking individuals.
A useful design culture encourages statements such as:
- “Here is an idea.”
- “Can this idea be improved?”
- “Is there a simpler solution?”
- “What would happen if the requirements changed?”
- “What problems might this approach create?”
This kind of challenge is productive because it exposes weaknesses while there is still time to address them.
A developer should be willing to hear that an idea is incomplete, inefficient, or unnecessarily complicated. Other team members should also feel safe proposing alternatives. The aim is not to make every person defend a position permanently; it is to use collective reasoning to reach a better result.
Following Instructions and Exercising Judgment
The source identifies two types of people who can be dangerous to work with:
- People who cannot follow instructions
- People who can only follow instructions
These two problems appear opposite, but both interfere with effective development.
People Who Cannot Follow Instructions
A person who cannot follow instructions may fail to begin or complete an assigned task. Even when the required action is clear, the work does not progress. This can create delays and force others to repeat explanations or supervise every detail.
Following instructions is important because software development includes tasks that must be completed accurately and consistently. Specifications, safety requirements, interfaces, and agreed processes sometimes must be respected exactly.
People Who Can Only Follow Instructions
A person who can only follow instructions may complete the literal assignment but fail to apply judgment. This can be even more dangerous because the work may appear complete while missing an obvious improvement or failing to respond to the actual goal.
For example, a developer may be told to implement a particular approach. While carrying it out, the developer may notice a simpler or more reliable solution. If the developer refuses to deviate because the alternative was not explicitly requested, the team may end up with an inferior design.
Literal obedience is not the same as understanding. Software development requires developers to interpret instructions in the context of the larger problem.
Balancing Compliance and Initiative
Effective developers need both the ability to follow instructions and the judgment to question or improve them. The desired behavior is not blind independence or blind obedience.
A strong developer can:
- Understand the intended goal
- Follow necessary constraints
- Recognize when an instruction is incomplete
- Identify a better approach
- Explain why a deviation may help
- Seek confirmation when the change has significant consequences
- Take responsibility for the result
This balance is especially important because instructions may describe what needs to be achieved without fully determining how it should be achieved.
Empowering Developers to Use Judgment
For developers to challenge plans and improve designs, they must be given enough authority and confidence to exercise judgment. A team that punishes every deviation from an original plan will teach its members never to think beyond explicit instructions.
Empowerment means allowing developers to investigate, experiment, and return with a better solution. It does not mean removing all boundaries. Developers still need to understand the problem, constraints, priorities, and consequences of their choices.
A productive working relationship may involve giving a developer:
- The problem that needs to be solved
- Relevant background information
- A few possible directions
- Constraints that must be respected
- Freedom to investigate the best implementation
The developer can then return with a solution rather than merely carrying out a predetermined sequence of actions.
Guidance Without Controlling Every Step
A useful mentor does not always provide the complete answer. Instead, the mentor may offer a direction and encourage the developer to discover the rest. This approach helps the developer build problem-solving ability rather than dependence on constant instructions.
For example, a mentor may say that a particular problem has several possible approaches, point toward a promising area of investigation, and ask the developer to explore it. Later, the developer can explain what was discovered and show the implementation.
This method has several benefits:
- It develops independent reasoning
- It gives the developer ownership of the solution
- It reveals whether the developer understands the problem
- It encourages experimentation
- It creates opportunities to discover solutions better than the mentor’s initial idea
The mentor’s role is not necessarily to supply every answer. It can be more valuable to create the conditions in which another developer can find and justify an answer.
Think About It
What is more valuable in the long term: a developer who can repeat a known solution exactly, or a developer who can understand a problem, evaluate alternatives, and explain a better solution? Effective software teams need the second ability while still respecting important constraints.
Comprehensive Review
The core principles in this material are connected by one central goal: creating software that can continue to evolve.
A good design is not defined by its creator’s confidence or by the fact that it works for the original requirements. It is defined more objectively by how easily and safely it can be changed. Because change is unavoidable in relevant software, adaptability must be considered from the beginning.
Developers should also expect design to improve through iteration. The first version is rarely perfect, and rewriting is a normal part of producing quality software. Prototypes, revisions, and refactoring help transform an initial understanding into a stronger design.
Human attitudes are equally important. Letting go of ego makes it possible to accept criticism and replace a weak idea. Remaining unemotional about specific solutions keeps attention focused on solving the problem rather than defending personal ownership. Teams should encourage constructive challenge so that members can expose weaknesses and discover better alternatives.
Finally, effective developers need a balance between following instructions and exercising judgment. Those who ignore instructions create disorder, while those who only follow instructions may fail to recognize better solutions. Empowered developers understand the intended goal, respect necessary constraints, and have the courage to suggest or implement improvements when appropriate.
The strongest software design culture therefore combines technical skill with humility, iteration, openness, and independent judgment. Its purpose is not to preserve the first solution, but to keep improving the software as the problem and its environment continue to change.

Ask anything
We've read this whole study set, so questions about it get the best answers.