Junior — Middle
Have you had experience developing personal projects using the principles of clean architecture?
sobes.tech AI
Answer from AI
Yes, in personal projects I applied the principles of clean architecture to separate responsibilities and improve testability of the code. For example, in an Android application, I distinguished the layers Presentation, Domain, and Data. The Domain layer implemented business logic through use cases that do not depend on the Android SDK. The Data layer was responsible for working with the network and database, while the Presentation layer handled display and user interaction.
Example structure:
- domain/
- usecases/
- models/
- data/
- repository/
- network/
- presentation/
- viewmodels/
- views/
This approach makes it easy to change implementations, such as substituting data sources or testing business logic without UI.