Before studying design patterns, would n’t it make people laugh if they did n’t know what design patterns are.
to sum up:
A design pattern is a set of code design experience that is used repeatedly, known by most people, classified and cataloged. The design pattern is simply that when solving a certain type of problem, there is an established excellent code framework that can be used. So what are the advantages?
advantage:
- The use of design patterns can improve the reusability of the code, can ensure the reliability of the code, and at the same time the code is easy to be understood by others.
- The application of a reasonable design model can actively cater to the "opening and closing" principle and "high cohesion and low coupling" to be followed in the development process