~/talk

DI for Dummies

Talkat Chicago Roboto 2022 · on Wednesday, 2022-07-27· [android]
links:none on file
slides:none on file

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

  1. 0:00Start
  2. 2:14Formal Definition of Dependency Injection
  3. 5:48Refactoring
  4. 9:53Single Responsibility Principle
  5. 15:15Tight Coupling and Heart Dependency
  6. 17:29Dependency Injection
  7. 23:29Android Studio
  8. 26:18How Do You Specify Dependency Injection
  9. 26:48Create a My Application Class
  10. 28:19Create a Main Module
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.