Dependency Injection in Practice

Dependency injection has been introduced as one of the modern best practices in WWDC 2016. The pattern significantly improves modularization of components for flexibility, maintainability and testability. However still only a few articles and examples exist for Swift developers to start learning dependency injection for their practical applications.

In this session, the original author of Swinject, the most popular dependency injection framework in Swift, will instruct the basic concept and advantages of dependency injection, and demonstrate its practical applications.

The talk covers:
– Tight coupling / loose coupling
– Inversion of Control (IoC)
– Initializer/property/method injections
– Testability with external systems and mocking
– Dynamic dependency injection with a container
– Static dependency injection in Cake Pattern


Session info:

Speaker: Yoichi Tagaya

iOS Developer at Mercari, Inc.

Date: 17 March 2017

Time: 12:00 - 12:50

Relevant tags:
Best practices Swift

See all speakers

See all videos