In this episode of the Bits of Q SOLID Principles series we are going to talk about the open-closed principle.
This principle is all about extandability of your code. We will talk about designing your code in such a way that it is easy to extend without having to modify existing code. We'll not only discuss how to do this at a class level, but even at a component or system level.
SOLID Principles Playlist:
• SOLID Principles
Timestamps:
0:00 Introduction
1:24 Open-Closed Principle at the class level
1:48 The initial design
2:16 Violating the Single Responsibility Principle?
3:46 A violation of the Open-Closed Principle!
4:31 The source of the problem
4:57 Fixing the design
5:15 Interfaces
6:30 Interfaces in different languages
7:07 Dynamically typed languages and duck-typing
8:04 Open-Closed beyond the class level
8:23 Components
9:30 Applying Open-Closed at a component level
10:45 A component diagram of the design
11:39 Dependencies and impact of modifications
13:36 Inverting the dependencies
14:55 Dependency Inversion Principle?
15:33 Summary & What's next!
Auf dieser Seite können Sie das Online-Video Write Extendable code with the Open-Closed Principle - SOLID Principals E2 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer BitsOfQ 09 Dezember 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 562 Mal angesehen und es wurde von 29 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!