BolEnglishLearn · Play · Win
Login

🧱 Software Design & Architecture · Architecture Evaluation Factors

🧱

Modularity

Quality AttributeCoreModule 1

Dividing a system into smaller components with clear responsibilities.

Small modules are easier to understand and change than one giant component.

💡 In practice

Separate modules handle Customer, Orders, Payments, and Notifications.

🖼️ CONCEPT PICTURE
A picture to help remember Modularity
Separate modules handle Customer, Orders, Payments, and Notifications.

💡 Like a robot built from snap-together blocks — swap or fix one block without rebuilding the robot.

💡 Learn🛠️ Apply🎯 Check

💡 Why it matters

A system split into small parts with clear jobs is easier to understand, test, change and reuse. One giant block means every change risks everything.

🛠️ How to achieve it

1
One responsibility per module
Each module should have a single, clear job.
2
Hide internals
Expose a small interface and keep the details private so others don't depend on them.
3
Minimize dependencies
Modules should talk through clear boundaries, not reach into each other.

⚠️ Signs of trouble

  • •One class or file does many unrelated things.
  • •Changing one area forces changes in many others.
  • •You can't understand a part without understanding the whole.
⚠️ Common mistake: Splitting so finely, or only by technical layer, that modules are still tangled — modularity is about clear boundaries, not just many files.

🎯 Quick check

Score: 0/2

Three questions to test the idea.

  1. 1. Modularity means dividing a system into…

    Answer: Smaller parts with clear, separate responsibilities

    It's about clear responsibilities and boundaries, not simply more files.

  2. 2. High cohesion with low coupling is good because…

    Answer: Each part is focused and parts don't tangle, so changes stay local

    Focused, loosely-connected parts can change without breaking the rest.

🔑 Key terms

Module
A self-contained part with one job.
Encapsulation
Hiding a module's internals.
Coupling
How connected modules are (lower is better).
Cohesion
How focused a module is (higher is better).

✅ 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 →