🏛️ Software Design & Architecture · Architecture Evaluation Factors
Architecture & Separation of Concerns
Keeping different responsibilities in appropriate layers or components.
UI, business rules, integration, and data access should not become one tangled block.
A button calls a service; the service applies business rules; a repository handles database access.
💡 Like a house with floors — plumbing, wiring and rooms each have their place, not all in one pile.
💡 Why it matters
When UI, business rules, integration and data access are separated, each can change and be tested on its own. Tangle them and every change risks the whole system.
🛠️ How to achieve it
⚠️ Signs of trouble
- •Business rules are written inside UI event handlers or SQL.
- •You can't change the database without touching the UI.
- •One class mixes display, rules and data access.
🎯 Quick check
Score: 0/2Three questions to test the idea.
1. Separation of concerns means…
Answer: Different responsibilities live in appropriate separate layers
UI, business rules and data access each belong in their own place.
2. A button click should…
Answer: Call a service that applies the business rules
The UI should delegate to a service; rules don't belong in the button.
