Fragmented - Android Developer Podcast

133: Dependency Injection and Service Locators in a Kotlin world with Danny Preussler


Listen Later

A hotly debated topic at the moment is the use of a library like Dagger for dependency injection in the world of Kotlin. In this episode, we talk to Danny Preussler. Danny's a pro who's been around from the Java 1.0 days! He helps trace the history of dependency injection in Java all the way to today, in a Kotlin world where there exists alternatives like Koin and Kodine.

We dive into how some of these use a Service Loader/Locator pattern and the subtle differences with dependency injection. Listen on for an action packed episode.

Show Notes
  • Danny's slides (DI in a Kotlin world) talk
  • Koin
  • Toothpick
  • how to pronounce reified
  • Service Locators vs Dependency Injection

    Your application is aware it's using a Service Locator, but your application should be totally un-aware that it's using a Dependency Injection Container.

    • SO post on the difference between DI & SL pattern
    • Martin Fowler's post on DI, IOC, SL
    • Caster.IO (paid) course by DF on setting up testing with Dagger 2 and Espresso
    • Mark Seeman on Service Locators being an anti-pattern
    • Sponsors
      • Bitrise - Bitrise is your mobile continuous integration and delivery for your whole team, with dozens of integrations for your favorite services.
      • Contact
        • @fragmentedcast
        • @preusslerberlin
        • @donnfelker and donnfelker (on Instagram)
        • @kaushikgopal and kaushikgopal (on Instagram)
        • ...more
          View all episodesView all episodes
          Download on the App Store

          Fragmented - Android Developer PodcastBy Donn Felker, Kaushik Gopal

          • 5
          • 5
          • 5
          • 5
          • 5

          5

          68 ratings


          More shows like Fragmented - Android Developer Podcast

          View all
          Design Details by Brian Lovin, Marshall Bock

          Design Details

          361 Listeners

          Developer Tea by Jonathan Cutrell

          Developer Tea

          402 Listeners

          Does Not Compute by Sean Washington, Rockwell Schrock

          Does Not Compute

          53 Listeners

          Toolsday by Una Kravets, Chris Dhanaraj

          Toolsday

          48 Listeners

          Swift Unwrapped by JP Simard, Jesse Squires, Spec Network, Inc.

          Swift Unwrapped

          90 Listeners