Why do we need Clean Architecture?
summary
Argues that putting business logic in a central domain layer makes it independent of Android, Retrofit, Room and UI; dependencies invert via domain interfaces so the data layer implements repositories and injects them into use cases. Shows practical pieces: Kotlin coroutines + Jetpack ViewModel, Retrofit, Room, JSON models, and mappers that translate network/database/presentation models. Recommends per-feature feature modules for parallel work; trade-off is more code but much easier testing and large-team scaling (author’s sample repo has a few thousand stars).
AI-written summary · about
chapters (16)
- 0:00Introduction and speaker intro
- 1:40Why good architecture matters
- 5:39Clean Architecture overview
- 7:25Dependency rule explained
- 12:42Data model evolution problem
- 15:13Multiple data models approach
- 18:00Mappers in Clean Architecture
- 20:04Views and ViewModels role
- 21:08Use cases and business logic
- 22:32Entities and repositories
- 23:35Layer implementation options
- 25:00Feature modules benefits
- 26:06Data flow in application
- 27:10Benefits of separation
- 30:02Pros and cons of Clean Architecture
- 31:47Q&A session begins
