Design Patterns · Middle · Question 28 of 75
What's the main rule of Clean Architecture?
- ✓Correct answer: Dependencies point inward: business rules don't know about UI, DB or frameworks
- 2Each layer should live in a separate repository
- 3The user interface is the center of the system; everything depends on it
Explanation
Entities and use cases are at the center, while frameworks, DB and UI are in the outer circles and depend on the inner ones. Then business logic can be tested without a browser, and the framework changed without rewriting the rules. For the frontend, the approach is often simplified.