Dependency Inversion Principle

Episode #316 | 21 minutes | published on December 21, 2017 | Uses swift-4
Subscribers Only
In this episode we cover the dependency inversion principle, which states that high level components should not depend on low level components, but instead they both should depend on abstractions. We will look at two examples of this and leverage dependency injection to decouple classes from concrete dependencies.

Episode Links

The first example in this screencast was taken from Agile Principles, Patterns, and Practices in C#, which is a great resource for learning more about software design. Don't let the C# scare you away, as the concepts are mostly applicable to any object oriented language.

blog comments powered by Disqus