BolEnglishLearn · Play · Win
Login

♻️ Software Design & Architecture · Architecture Evaluation Factors

♻️

Reusability

Quality AttributeCoreModule 1

The ability to use the same component or logic in multiple places.

Build common functionality once when the same business behavior is genuinely shared.

💡 In practice

One Address component is reused by registration, profile, and application pages.

🖼️ CONCEPT PICTURE
A picture to help remember Reusability
One Address component is reused by registration, profile, and application pages.

💡 One good rubber stamp, used on every page — not redrawing the shape by hand each time.

💡 Learn🛠️ Apply🎯 Check

💡 Why it matters

Building the same thing many times wastes effort and spreads bugs. A well-made reusable component is written and tested once, then used everywhere — consistent and cheaper to maintain.

🛠️ How to achieve it

1
Extract genuine shared behavior
When the same real need appears in several places, make one component.
2
Keep it general but focused
Configurable enough to fit, without trying to do everything.
3
Give it a clean interface
Clear inputs and outputs let others reuse it without knowing its internals.

⚠️ Signs of trouble

  • •The same component is copy-pasted and then edited slightly in many places.
  • •A bug has to be fixed in several near-identical copies.
  • •Teams rebuild things that already exist.
⚠️ Common mistake: Forcing reuse too early — bending unrelated cases into one 'shared' component until it becomes a tangled mess (premature abstraction).

🎯 Quick check

Score: 0/2

Three questions to test the idea.

  1. 1. DRY stands for…

    Answer: Don't Repeat Yourself

    DRY means define each piece of knowledge once, in one place.

  2. 2. When is building a shared component the right call?

    Answer: When the same real behavior is genuinely needed in several places

    Reuse real, shared behavior — forcing it too early creates a tangled abstraction.

🔑 Key terms

Component
A reusable building block.
DRY
Don't Repeat Yourself — define each thing once.
Abstraction
Hiding detail behind a simple interface.
Coupling
Unwanted dependency between parts.

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