BolEnglishLearn · Play · Win
Login

🔧 Software Design & Architecture · Architecture Evaluation Factors

🔧

Maintainability

Quality AttributeCoreModule 1

How easy the solution is to understand, fix, and change.

A developer who did not originally build the feature should still be able to work on it safely.

💡 In practice

Instead of one 5,000-line class, separate customer, payment, and notification logic into understandable components.

🖼️ CONCEPT PICTURE
A picture to help remember Maintainability
Instead of one 5,000-line class, separate customer, payment, and notification logic into understandable components.

💡 Think of a tidy toolbox: anyone can find the right tool and put it back — not a drawer you dig through every time.

💡 Learn🛠️ Apply🎯 Check

💡 Why it matters

Most of a system's life is spent being changed, not first written. Code that is easy to read and safe to change keeps a team fast for years; tangled code slows every future change and breeds bugs.

🛠️ How to achieve it

1
Keep each piece small and focused
Split big classes and functions so each does one clear job.
2
Name things clearly
Good names and a consistent style let a newcomer read the code like a sentence.
3
Remove duplication
One rule in one place means one place to change it later.
4
Lean on tests
A safety net of tests lets you change code without fear.

⚠️ Signs of trouble

  • •People are scared to touch certain files.
  • •A small change breaks things in unrelated places.
  • •Only one person understands a key area.
  • •The same logic is copied in many spots.
⚠️ Common mistake: Adding 'just one more if' to a giant class instead of refactoring — each shortcut makes the next change harder.

🎯 Quick check

Score: 0/2

Three questions to test the idea.

  1. 1. What does 'maintainable' mainly mean?

    Answer: Easy to understand, fix and change safely

    Maintainability is about how safely and easily the code can be understood and changed.

  2. 2. You find the same validation copied in 10 screens. What helps maintainability?

    Answer: Move it into one shared place

    One rule in one place means one safe place to change it in future.

🔑 Key terms

Refactoring
Improving structure without changing behavior.
Coupling
How tangled parts are with each other (lower is better).
Cohesion
How focused a single part is on one job (higher is better).
Code smell
A sign that something needs cleanup.

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