What is the core goal of Clean Architecture?
To separate business logic from UI and data for maintainability and prevent Technical Debt
What is the Dependency Rule?
Inner layers never depend on outer layers; dependencies point inwards.
What lives in the Domain Layer?
Pure business logic, entities, and abstract repository interfaces.
What lives in the Data Layer?
Databases, APIs, data sources, and repository implementations.
What lives in the Presentation Layer?
UI widgets, screens, and state management logic.
What is an Entity?
A pure class representing a business object independent of frameworks.
Where should you put ‘Use Cases’?
In the Domain layer, defining specific business actions.
Why use Repository Interfaces in Domain?
To decouple the business logic from specific data sources.
What is the main benefit for testing?
Core logic can be tested without UI or databases.
What is a DTO (Data Transfer Object)?
A model used only for parsing JSON or SQL data.
List out 4 folders can be in the data folder
List out 4 folders can be in the domain folder
List out 4 folders can be in the presentation folder