Opinionated Dependency Injection in Swift

  Переглядів 3,077

Swift Language User Group

Swift Language User Group

5 років тому

Writing dependable code at scale means writing tests, and writing tests means using Dependency Injection. The concept of DI is absurdly simple -- yet DI frameworks often end up being quite complex. At Lyft, we developed a minimalist, opinionated DI solution for our Swift codebase. It provides compile-time safety, decentralized configuration, and a clean syntax. And by having preferences about state and "magic", it remains absurdly simple.
---
This talk was given at the Swift Language User Group meetup on January 16 2019.

КОМЕНТАРІ: 5
@iCode21
@iCode21 2 роки тому
Great solutions
@chadwiedemann
@chadwiedemann 3 роки тому
This was a year ago. Have they open sourced this yet?
@CuongLe-xo4ee
@CuongLe-xo4ee 5 років тому
do they open source that framework?
@DimaOsadchy
@DimaOsadchy 5 років тому
Nope, but there is a good article related to this video noahgilmore.com/blog/swift-dependency-injection/?fbclid=IwAR0mFf6nupSHJHXbtItBejQbD2c2u9tZmDsu-9tP0hAbyasZnnoVEshpPIc
@NickTeissler
@NickTeissler 4 роки тому
I couldn't find this library, but it is a big emerging pattern. Here is another lightweight one that I have liked to use: github.com/hmlongco/Resolver that works very similar to the one described in the video
gRPC & iOS at Lyft
32:02
Swift Language User Group
Переглядів 7 тис.
How did CatNap end up in Luca cartoon?🙀
00:16
LOL
Переглядів 5 млн
Що рятує українців від похмілля?😁 | #НовийКанал #ЄПитання
00:53
єПитання з Лесею Нікітюк
Переглядів 439 тис.
Codeforces stream #2 - div1 A-B solving with explanation
3:51:01
Errichto Algorithms
Переглядів 308 тис.
Context Menus: from basics to polish
37:05
Swift Language User Group
Переглядів 4,4 тис.
Learn HTML5 and CSS3 For Beginners - Crash Course
3:54:03
developedbyed
Переглядів 2,7 млн
CoreImage for Fun and Profit
26:56
Swift Language User Group
Переглядів 3,6 тис.
Exploiting The Swift ABI
40:07
Swift Language User Group
Переглядів 2,3 тис.
Privacy Aware Logging with Swift
28:24
Swift Language User Group
Переглядів 2,9 тис.
Deep Learning: A Crash Course (2018) | SIGGRAPH Courses
3:33:03
ACMSIGGRAPH
Переглядів 2,6 млн