BolEnglishLearn · Play · Win
Login

🎛️ Software Design & Architecture · Architecture Evaluation Factors

🎛️

Configurability

Quality AttributeCoreModule 1

The ability to change appropriate business behavior without code changes.

Frequently changing values should be configuration when safe and sensible.

💡 In practice

An application fee is stored in configuration rather than repeated as a hard-coded value in five classes.

🖼️ CONCEPT PICTURE
A picture to help remember Configurability
An application fee is stored in configuration rather than repeated as a hard-coded value in five classes.

💡 Like a thermostat dial — change the setting, not rewire the heater.

💡 Learn🛠️ Apply🎯 Check

💡 Why it matters

Some values change often — fees, limits, messages. Putting them in configuration lets the business change behavior safely without a code change and a redeploy.

🛠️ How to achieve it

1
Externalize changing values
Store fees, thresholds and toggles in config, not hard-coded.
2
One source of truth
Define each setting once and read it everywhere — don't repeat the value.
3
Guard and validate config
Validate settings and control who may change them.

⚠️ Signs of trouble

  • •The same number is hard-coded in several classes.
  • •A simple policy change needs a developer and a redeploy.
  • •Config is scattered and inconsistent.
⚠️ Common mistake: Either hard-coding values that change often, or over-configuring everything until the system is impossible to understand or test.

🎯 Quick check

Score: 0/2

Three questions to test the idea.

  1. 1. An application fee that changes often should be…

    Answer: Stored in configuration, read in one place

    Config lets the business change the fee without a code change and redeploy.

  2. 2. A risk of over-configurability is…

    Answer: The system becomes hard to understand and test

    Too many switches make behavior hard to predict and verify.

🔑 Key terms

Configuration
Settings kept outside the code.
Hard-coding
A fixed value written into the code.
Feature toggle
An on/off switch for behavior.
Single source of truth
One authoritative place for a value.

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