Fragmented - Android Developer Podcast

251- There's a new king in DI town

28 snips
Nov 12, 2024
Ralf Wondratschek, a principal engineer at Amazon and an expert in dependency injection, joins the show to discuss the evolution of DI in Android development. He reveals the challenges Dagger faced and introduces Kotlin Inject as a strong contender for the future. The conversation touches on the shift from Dagger to Kotlin Inject, emphasizing enhanced productivity and reduced boilerplate code. Listeners gain insights into the pros and cons of various DI frameworks, advocating for informed choices in large-scale projects.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

DI Evolution

  • Dependency injection (DI) is a crucial topic for Android developers.
  • It has evolved from Dagger to a combination of Kotlin Inject and Kotlin Inject Anvil.
ANECDOTE

Dagger's Journey

  • Dagger 1, introduced in 2012 by Square, was initially popular but suffered from performance issues due to reflection.
  • Dagger 2, released by Google in 2015, addressed performance but increased complexity.
INSIGHT

Dagger-Android's Complexity

  • Dagger-Android, introduced in 2017, aimed to simplify Dagger 2 but added more confusion.
  • The documentation, with its thermosyphon examples, was notoriously difficult.
Get the Snipd Podcast app to discover more snips from this episode
Get the app