Fragmented - AI 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

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.
INSIGHT

Coin's Rise and Fall

  • Coin, leveraging Kotlin DSLs, gained popularity for its ease of use and setup.
  • However, its use of the service locator pattern sparked debate and potential coupling issues.
INSIGHT

Hilt and Anvil

  • Hilt, released by Google in 2020, improved upon Dagger but modularization challenges remained.
  • Square’s Anvil simplified Dagger in multi-module apps around 2020, becoming a community favorite.
Get the Snipd Podcast app to discover more snips from this episode
Get the app