
This video is only available to subscribers. Start a subscription today to get access to this and 469 other videos.
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.
This episode is part of a series: S.O.L.I.D..
1. The SOLID Principles 4 min |
2. Single Responsibility Principle 17 min |
3. Open Closed Principle 13 min |
4. Liskov Substitution Principle 20 min |
5. Interface Segregation Principle 14 min |
6. Dependency Inversion Principle 21 min |
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.