1. Home
  2. Explore
  3. Computer Science
  4. Software Design Principles

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Software Design Principles

Core Design Principles for Software Developers

Defining Good Software Design

A central question in software development is how to determine whether a design is “good.” Personal ownership or authorship is not an objective measure: a design is not good merely because its creator produced it.

A more useful definition is based on change:

Good design is design that is easy and inexpensive to change.

A design should minimize the time, effort, and risk required when requirements evolve. However, evaluating a design only after a major change has become necessary is too late. If developers discover that a design is difficult to modify only when the system must change, the design problems have already become expensive.

Evaluating Design Proactively

Developers should subject a design to change continuously rather than waiting for a real requirement to expose its weaknesses. This involves:

  • Considering likely changes during development.

  • Testing whether the design can accommodate those changes.

  • Identifying parts that are difficult to modify.

  • Refining the design before problems become costly.

  • Repeatedly evolving the system toward greater flexibility.

A design should therefore be judged not only by whether it works today, but also by how well it responds to tomorrow’s requirements.


Software Is Continuously Rewritten

It is almost impossible to create a high-quality design perfectly on the first attempt. Developers often expect to write code once, finish it, and never revisit it. In practice, important creative and technical work usually requires multiple iterations.

Great works of art, including paintings and sculptures, were often preceded by:

  • Experiments

  • Sketches

  • Prototypes

  • Partial versions

  • Revisions and refinements

Software development follows the same pattern. A first implementation is generally a starting point rather than a finished product.

Software is not truly written once; it is continuously rewritten.

This means developers must deliberately create opportunities to revisit and improve their software. Rewriting can involve:

  • Simplifying an overly complicated design.

  • Removing duplication.

  • Improving abstractions.

  • Clarifying responsibilities.

  • Adjusting the structure to support new requirements.

  • Replacing an approach that has proven difficult to maintain.

The Need for Continuous Evolution

Relevant software must change over time. Business needs, user expectations, technologies, regulations, and operating environments evolve. Therefore, a system that never changes is usually not a successful, relevant system. It may instead indicate that the project was abandoned or canceled.

A software system must be designed with change in mind because:

  • New features will be requested.

  • Existing behavior may need modification.

  • Performance requirements may increase.

  • External systems and technologies may change.

  • Defects and limitations will be discovered.

  • Users may interact with the system in unexpected ways.

The design process should therefore provide room for experimentation, revision, and improvement.


Design Quality Depends on the Ability to Change

The quality of a design can be evaluated by examining how easily it adapts to change. A design that appears elegant but becomes fragile whenever a requirement changes is not genuinely effective.

Important questions include:

  • How many parts of the system must be modified to support one change?

  • Does a change in one area unexpectedly affect unrelated areas?

  • Can developers understand where a change belongs?

  • Can the design accommodate new behavior without extensive restructuring?

  • Does the system make experimentation safe and practical?

  • Can developers improve the implementation without changing its externally visible behavior?

The easier a system is to modify, the more valuable the design is over its lifetime.


Letting Go of Ego

The first and most difficult step toward better design is to let go of ego.

Developers can become attached to their work because it represents their effort, creativity, and technical judgment. This attachment can lead to statements such as:

  • “It is my design.”

  • “I created it, so it must be correct.”

  • “Changing it means criticizing me.”

  • “My original solution should be preserved.”

This mindset interferes with improvement. No developer is perfect, and every design is subject to limitations, misunderstandings, and changing circumstances.

A developer’s identity should not be tied to the correctness of a particular design.

Letting go of ego does not mean abandoning pride or caring about quality. Instead, it means separating personal identity from individual solutions. The objective is to produce better software, not to prove that an initial idea was flawless.

Productive and Unproductive Ego

Ego can have both useful and harmful effects.

  • Productive ego: Provides pride, motivation, ownership, and passion for creating high-quality work.

  • Unproductive ego: Causes defensiveness, resistance to criticism, attachment to old decisions, and unwillingness to revise a design.

The goal is not to eliminate ego entirely. The goal is to retain the motivation and pride that support excellent work while avoiding the defensiveness that blocks progress.

This balance can be compared to cholesterol: some forms may be beneficial, while excessive or harmful forms create problems. Similarly, a moderate amount of professional pride can motivate developers, but excessive attachment to personal ideas can damage the design process.


Remaining Unemotional About Solutions

Another essential design principle is to remain unemotional about specific solutions.

Developers often become emotionally attached to an implementation. When someone questions it, the discussion can feel personal even though it concerns only a technical decision. This attachment may cause developers to defend a design simply because it is theirs.

Being unemotional does not mean being indifferent to software quality. It means distinguishing between:

  • The problem that must be solved, and

  • The particular solution currently being proposed

Developers should be strongly committed to solving the problem, but only temporarily committed to any individual implementation.

The goal is to protect the problem, not to protect a preferred solution.

A useful attitude is:

“Here is one possible idea. Either use it or develop something better.”

This approach treats every design as open to evaluation and replacement. A better solution should be welcomed, regardless of who proposes it.

Benefits of Emotional Detachment

Remaining unemotional about solutions helps developers:

  • Accept constructive criticism.

  • Identify weaknesses earlier.

  • Compare multiple approaches objectively.

  • Replace inadequate designs without embarrassment.

  • Focus discussions on evidence and consequences.

  • Encourage experimentation.

  • Avoid wasting time defending decisions that no longer serve the system.

This principle applies both to individual developers and to teams. A team should evaluate designs based on how well they solve the problem, not based on who created them.


The Importance of Challenging Ideas

High-quality software development benefits from people who can challenge one another constructively. A team should not consist only of individuals who agree with the first proposal.

Useful challenge involves:

  • Asking why a design works.

  • Identifying alternative approaches.

  • Pointing out risks and hidden assumptions.

  • Testing whether a simpler solution exists.

  • Questioning whether a requirement has been interpreted correctly.

  • Suggesting improvements rather than merely criticizing.

A design becomes stronger when it survives thoughtful examination or when examination leads to a better design.

Empowering Team Members

Developers should be empowered to make judgments rather than merely execute instructions. Team members need the courage and confidence to deviate from a proposed plan when they discover a better approach.

Empowerment means allowing people to:

  • Think independently.

  • Interpret the underlying objective.

  • Make reasonable technical decisions.

  • Explore alternatives.

  • Challenge existing plans.

  • Return with improved solutions.

  • Accept responsibility for the consequences of their decisions.

A manager or senior developer should communicate the goal and relevant constraints without necessarily prescribing every implementation detail.


Two Dangerous Extremes in Following Instructions

There are two particularly harmful patterns of behavior when people are working together.

People Who Cannot Follow Instructions

The first group consists of people who cannot follow instructions at all. They may be given a clear task but fail to begin or complete it.

Possible causes include:

  • Lack of discipline.

  • Inability to understand the task.

  • Poor communication.

  • Insufficient technical ability.

  • Lack of accountability.

  • Failure to prioritize assigned work.

This behavior is dangerous because the team cannot rely on the person to carry out necessary responsibilities.

People Who Can Only Follow Instructions

The second group is more subtly dangerous: people who can follow instructions exactly but cannot think beyond them.

Such a person may complete precisely what was requested even when they discover a better solution. Their reasoning is often:

“That was not what I was told to do.”

This creates problems because software development requires judgment. Requirements and instructions cannot anticipate every technical discovery. A developer may uncover:

  • A simpler implementation.

  • A more maintainable design.

  • A serious flaw in the original plan.

  • A better use of existing abstractions.

  • An opportunity to improve performance or reliability.

If the developer refuses to deviate from the original instructions, the team loses the benefit of that discovery.

The Desired Balance

Effective developers must be able to do both:

  1. Follow instructions when they are appropriate and necessary.

  2. Exercise independent judgment when a better path becomes apparent.

The desired behavior is neither blind obedience nor uncontrolled independence. It is informed initiative: understanding the objective, respecting constraints, and proposing a better approach when one is found.


Learning Through Guided Discovery

One effective way to encourage independent thinking is to avoid giving every answer immediately. Instead, a more experienced developer can provide:

  • A clear problem.

  • Useful background information.

  • Some possible directions.

  • Relevant constraints.

  • Enough guidance to begin investigation.

The learner can then explore the problem and return with a solution.

This approach differs from simply assigning a task with no support. Guided discovery provides direction without removing the opportunity to think.

Why Guided Discovery Works

When developers find an answer themselves, they are more likely to:

  • Understand the reasoning behind the solution.

  • Remember the solution.

  • Gain confidence in their abilities.

  • Develop problem-solving skills.

  • Discover alternatives that were not anticipated.

  • Take ownership of the result.

  • Become more capable of handling future problems independently.

The goal is not merely to complete the immediate task. It is to develop a person who can solve similar problems without requiring step-by-step instructions.

A General Process

A productive mentoring or collaboration process can follow these steps:

  1. Present the problem clearly.

  2. Explain the desired outcome and important constraints.

  3. Offer a few ideas or directions without prescribing the entire solution.

  4. Allow the developer time to investigate.

  5. Encourage experimentation and independent reasoning.

  6. Ask the developer to return with an implementation or proposal.

  7. Review the result based on how well it solves the problem.

  8. Discuss possible improvements and alternatives.

The experienced developer’s role is to create conditions for learning and better design, not to demonstrate personal superiority by providing every answer.


Core Principles

The material presents several connected principles for software design and collaboration:

  • Define good design by changeability: A good design minimizes the cost and effort of future changes.

  • Evaluate designs proactively: Do not wait until a difficult change reveals that the design is poor.

  • Expect iteration: High-quality software usually requires repeated refinement.

  • Make rewriting possible: Software should be structured so it can be revisited and improved.

  • Let go of ego: Personal ownership should not prevent criticism or revision.

  • Remain unemotional about solutions: Commitment should be directed toward solving the problem, not preserving a particular implementation.

  • Encourage challenge: Teams improve when members question assumptions and propose alternatives.

  • Empower independent judgment: Developers should understand goals and constraints well enough to deviate from a plan when appropriate.

  • Avoid both extremes of instruction-following: Developers should neither ignore instructions nor follow them so rigidly that they abandon better solutions.

  • Use guided discovery: Providing direction while allowing people to find answers develops stronger, more capable developers.

Together, these principles support software that can evolve, teams that can think critically, and development practices that improve through continuous learning and revision.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent