Today we will describe the first design pattern or rather anti-pattern, it is officially a design pattern, but for many it is also considered by me as anti-pattern, because it has many disadvantages that we will tell you about, but still is useful for some applications.
In this lesson we will discuss what the design patterns, the types of design patterns are and in the next lesson I will talk about the first (Anti) pattern, singleton, personally, in most cases I do not recommend using it. Why not? We’ll get to that 🙂
Today about the last and very important principle of SOLID, Dependency inversion.
Today, this lesson will be rather short, because is about the fourth principle of SOLID, the principle of segregation of interfaces.
In my opinion, the Liskov principle is the hardest to understand, others often confuse it with other principles, let’s move on to the lesson.
The second SOLID principle, open-closed, ie open to extension, closed to modifications. What is going on? About this further.
The principle of single responsibility says that each class should be responsible for one specific thing, there should be only one reason to modify the class.
In this lesson, we will discuss what SOLID principles are, why you should apply them, and on what you will practice in the next lessons.