BolEnglishLearn · Play · Win
Login

🧩 Software Design & Architecture · Architecture Evaluation Factors

🧩

Extensibility

Quality AttributeCoreModule 1

How easily new capabilities can be added.

New requirements should fit into the design without repeatedly rewriting the core system.

💡 In practice

A payment design supports credit card today and can add PayPal later through a new payment provider implementation.

🖼️ CONCEPT PICTURE
A picture to help remember Extensibility
A payment design supports credit card today and can add PayPal later through a new payment provider implementation.

💡 Like a toy with snap-on parts — add a new piece without rebuilding the whole toy.

💡 Learn🛠️ Apply🎯 Check

💡 Why it matters

Requirements never stop changing. A design you can extend lets you add features by plugging in new parts, instead of risky surgery on the core every single time.

🛠️ How to achieve it

1
Program to interfaces
Depend on a contract, not a concrete type, so new implementations drop in.
2
Use clear extension points
Plugins, strategies or providers let new behavior be added without editing old code.
3
Keep the core stable
Add new code rather than rewriting proven code — open for extension, closed for modification.

⚠️ Signs of trouble

  • •Adding a feature means editing many existing files.
  • •A new option forces a big if/else or switch to grow again.
  • •Teams fear that new features will break old ones.
⚠️ Common mistake: Hard-coding today's only option, so tomorrow's second option requires rewriting the core.

🎯 Quick check

Score: 0/2

Three questions to test the idea.

  1. 1. The Open/Closed Principle says software should be…

    Answer: Open to extension, closed to modification

    You should be able to add new behavior without changing proven, existing code.

  2. 2. A payment design must add PayPal. The extensible way is to…

    Answer: Add a new provider behind the same interface

    A new implementation of the existing payment interface slots in without touching the core.

🔑 Key terms

Interface
A contract that parts agree to follow.
Open/Closed Principle
Open to extension, closed to modification.
Plugin
A drop-in new behavior added without touching the core.
Strategy
A swappable algorithm chosen at runtime.

✅ Review checklist

📊 Your progress

0%
Mark this topic learned to track it.
Saved in this browser.
🚀 Got it?
Mark it learned and move to the next topic.
Next topic →