246 – Dependency Injection: Kotlin Inject with Fred Porciúncula

Download

In this podcast episode, we have the pleasure to host Fred Porciúncula, a Google Developer Expert (GDE) known for his work with Kotlin Inject and his invaluable contributions to the Android development community. Fred offers his expertise on Dependency Injection (DI), Kotlin Multiplatform (KMP), and how they intersect.

We kick off the conversation by discussing Dependency Injection (DI), its importance, and the options available to developers, including Dagger, Hilt, Anvil, Koin, and Kotlin-Inject. Fred explains the use and impact of DI in the Kotlin Multiplatform (KMP) world, considering Dagger’s current lack of KMP support and debating whether one should use separate DI tools for Android apps and KMP components.

Delving further into Kotlin-Inject, we explore its features, usage, and how it differentiates itself from other DI solutions. Topics discussed include its unique handling of Scopes, its support of constructor injection, and its utility in building dependency graphs. Furthermore, we examine the timeless debate of Dependency Injection versus Service Locator.

Toward the end of the episode, Fred presents his thoughts on the advantages and disadvantages of exclusively using Kotlin-Inject throughout an application. We also tackle the concept of “Vanilla Injection” – refraining from using DI libraries at all.

For further learning, we recommend resources like Fred’s insightful article on transitioning from Dagger/Hilt to Kotlin-Inject, a Dagger issue discussing KSP support, and a Kotlin-Inject discussion on Anvil-like features. Links to these resources, among others, are provided below. Don’t miss out on this engaging and informative episode with Fred Porciúncula!

Links

Find Fred Online Here

Donn’s Git Course

Need to learn Git? Donn has the course for you. In this FREE course you’ll learn everything you need to know in order to start working with Git everyday. Watch it here.

AndroidJobs.IO

  • Job postings are FREE on AndroidJobs.IO 🎉
  • Sign up to get notified of new jobs on a weekly basis as well.
  • AndroidJobs.IO

Software Freelancing

Contact

@fragmentedcast on Twitter or our YouTube channel

Donn

Kaushik

Disclaimer: Many of the links we share to products are affiliate links. They help support the production of Fragmented. Thank you for your support.

245: Treehouse, Redwood and Zipline with Colin White

Download

In this episode, Donn and Kaushik talk to an old friend of the show, Colin White, about Treehouse, a combination of the Redwood and Zipline libraries.

Colin is a Staff Engineer at Cash App (Block).

Redwood is a multiplatform Compose library that allows you to target multiple UI toolkits on various native platforms. Ultimately this allows you to share presentation logic.

Zipline is a multiplatform JavaScript engine for Android, iOS, and the JVM, which uses Kotlin for calls in/out of the JavaScript land. This allows you to update the application logic of your apps without the traditional song and dance of the app store approval and release process.

Treehouse is the combination of both libraries, Redwood and Zipline. Listen in to learn more …

Links

Find Colin Online here

AndroidJobs.IO

  • Job postings are FREE on AndroidJobs.IO!
  • Sign up to get notified of new jobs on a weekly basis as well.
  • AndroidJobs.IO

Contact

@fragmentedcast on Twitter or our Youtube channel

Donn

Kaushik

Disclaimer: Many of the links we share to products are affiliate links. They help support the production of Fragmented. Thank you for your support.

244: Reviving Our Passion for Android Development

In this episode, Donn and Kaushik announce that they are steering the podcast back into Android waters. In other words, the Fragmented Podcast is returning to its roots … we’re back to being a 100% Android Development focused show.

We’re glad to have you as a listener, here’s to the future of Android Development. 🚀

AndroidJobs.IO

  • Job postings are FREE on AndroidJobs.IO 🎉
  • Sign up to get notified of new jobs on a weekly basis as well.
  • AndroidJobs.IO

Contact

Disclaimer: Many of the links we share to products are affiliate links. They help support the production of Fragmented. Thank you for your support.

243: Mastering the Art of Switching Careers in Tech with Dan Lew

Download

In this episode, Donn and Kaushik talk to long-time friend Dan Lew about his recent career switch from Android developer to TypeScript/Node.js/Progressive Web App Developer (and more).

It’s an interesting discussion that covers …

  • Why Dan decided to leave the Android world
  • The challenges he faced when he moved from one tech stack to another
  • How to prepare for a big change like this (mentally, financially, etc.)
  • How to create the life you want live vi by identifying what’s important to you
  • and much more …

Links

Donn’s Git Course

Need to learn Git? Donn has the course for you. In this FREE course, you’ll learn everything you need to know to start working with Git everyday. Watch it here.

AndroidJobs.IO

  • Job postings are FREE on AndroidJobs.IO during the early release phase (at the time of this recording).
  • Sign up to get notified of new jobs every week as well.
  • AndroidJobs.IO

Software Freelancing

Contact

@fragmentedcast or our Youtube channel

@donnfelker and donnfelker (on Instagram)

Freelancing for Mobile Developers (Donn’s YouTube)

kaushikgopal (on YouTube) or kau.sh/blog or @kaushikgopal

Disclaimer: Many of the links we share to products are affiliate links. They help support the production of Fragmented. Thank you for your support.

242 – Kotlin Code Formatting with ktfmt and spotless

Download

In this episode, Donn and Kaushik talk about one of the age old bike shedding topics – code formatting, and how you can solve it with automation and tools.

Code formatting can turn into an endless debate amongst peers and teams, and what Kaushik and Donn have found is that this can be delegated to a tool and automated. Freeing you and your team of having to worry about proper indentation, bracket placement, etc. By relying on a well defined tool and some automation you can clean your code up, make it much more uniform and easier maintain.

We talk about ktfmt, a Kotlin code formatter that was released by Facebook. We dive into ktlint, detekt and more. We also dive into spotless which can help you by integrating ktfmt into your gradle build pipeline.

Links

Donn’s Git Course

Need to learn Git? Donn has the course for you. In this FREE course you’ll learn everything you need to know in order to start working with Git everyday. Watch it here.

AndroidJobs.IO

  • Job postings are FREE on AndroidJobs.IO during the early release phase (at the time of this recording).
  • Sign up to get notified of new jobs on a weekly basis as well.
  • AndroidJobs.IO

Software Freelancing

Contact

@fragmentedcast or our Youtube channel

@donnfelker and donnfelker (on Instagram)

Freelancing for Mobile Developers (Donn’s YouTube)

kaushikgopal (on YouTube) or kau.sh/blog or @kaushikgopal

Disclaimer: Many of the links we share to products are affiliate links. They help support the production of Fragmented. Thank you for your support.