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
Sur cette page du site, vous pouvez voir la vidéo en ligne More Modular Code with Dependency Inversion - SOLID Principles E5 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur BitsOfQ 02 juin 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 624 fois et il a aimé 20 téléspectateurs. Bon visionnage!