Why we use Clean Architecture?
Why/How/What Clean Architecture?
Ref:https://8thlight.com/blog/uncle-bob/2012/08/13/the-clean-architecture.html
Slide 41
Slide 41 text
Why CleanArch.?
● Reduce & prevent spaghetti codes
● Increase readable and testable codes
● Clear scope of influence
Slide 42
Slide 42 text
How does design CleanArch?
● Separation of stable & flexible codes.
● Make Flexible code dependent only on more
stable code
● Make the direction of dependence one direction
Slide 43
Slide 43 text
Over view(※): CleanArchitecture
※:Some interfaces, or classes are omitted
Data Layer
● DataStore:
Gateway for DB/API,
and generate Entity
Slide 46
Slide 46 text
Domain Layer
● Entity:
Express business data
● Usecase:
Express business logic,
gateway for presentaion
● Repository: Interface
between domain and data
layer
Slide 47
Slide 47 text
Let’s see Sample Product
● Sample Product:
Click button -> change
TextView as several Lang
https://github.com/kiuchikeisuke/Android-Studio-CleanArchitecture-template-forKotlin/tree/demo_for_droidcon