DI for Dummies
summary
Explains dependency injection as constructor-passing plus practical fixes: replaces tight coupling so swapping Sentry for Firebase needs one change at an analytics wrapper, enables fake repositories for testing, and avoids repeated instances by using a singleton component for shared Retrofit or prefs. Shows setup steps — application annotation, modules with @Provides, viewmodel injection — and demos Dagger Hilt usage including scoping differences and why Hilt’s compile‑time wiring beats runtime service‑locator errors.
AI-written summary · about
chapters (10)
- 0:00Start
- 2:14Formal Definition of Dependency Injection
- 5:48Refactoring
- 9:53Single Responsibility Principle
- 15:15Tight Coupling and Heart Dependency
- 17:29Dependency Injection
- 23:29Android Studio
- 26:18How Do You Specify Dependency Injection
- 26:48Create a My Application Class
- 28:19Create a Main Module








