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
Auf dieser Seite können Sie das Online-Video More Modular Code with Dependency Inversion - SOLID Principles E5 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer BitsOfQ 02 Juni 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 624 Mal angesehen und es wurde von 20 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!