What exactly is a design pattern?

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:

  1. 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.
  2. 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

 

Published 124 original articles · Like 24 · Visits 10,000+

Guess you like

Origin blog.csdn.net/qq_42214953/article/details/105453686