Dead Simple Dependency Injection with Kotlin Default Arguments

Опубликовано: 23 Сентябрь 2022
на канале: Pairing with Duncan
1,096
43

You don't need a framework to inject dependencies - DI is really just allowing dependencies to be specified rather than being baked in.

In order to test our unreleased pricing code we want a version of the app that differs from the production version. Instead of introducing a framework to manage the dependencies, we just extract a function that builds the app from its components, and use default arguments for the production configuration.

If you like this, you’ll probably like the book Java to Kotlin, A Refactoring Guidebook
http://java-to-kotlin.dev.


Смотрите видео Dead Simple Dependency Injection with Kotlin Default Arguments онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Pairing with Duncan 23 Сентябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,096 раз и оно понравилось 43 людям.