In this episode of the Bits of Q SOLID Principles series we are going to talk about the Dependency Inversion principle.
This principle is all about decoupling your code from its dependencies.
By carefully introducing interfaces you can make your code more modular and easier to maintain.
We'll demostrate how to apply the dependency inversion principle and will talk about which violations of the principle can and should be fixed, as this is not always possible.
SOLID Principles Playlist:
• SOLID Principles
Timestamps:
0:00 Introduction
0:12 First solution
0:44 The problem
1:28 Protecting against change
2:05 Fixing violations of the DIP
2:47 Flow of control vs dependencies
3:23 The Dependency Inversion Principles
3:58 Fixing the last violation
4:25 When to fix violations of the DIP?
6:44 Conclusion
On this page of the site you can watch the video online More Modular Code with Dependency Inversion - SOLID Principles E5 with a duration of hours minute second in good quality, which was uploaded by the user BitsOfQ 02 June 2023, share the link with friends and acquaintances, this video has already been watched 624 times on youtube and it was liked by 20 viewers. Enjoy your viewing!