Переглядів 3,077
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.