A design pattern is a solution to a different problem, the design pattern is often related to object-oriented programming, but is not unique, and some non-computational disciplines are also closely related to design patterns.
The design pattern does not mean that there is only one solution that does not mean that this mode is the best solution for this problem, but only provides an optimal practice of this particular problem. This method is Countless practical experience.
The mode and programming environment are related, the programming environment will affect the selection of the pattern, not all programming environments support all design patterns, very simple to implement some model in some programming environment or language, in another programming The environment or prophecy may be difficult.
The design pattern is divided into a group, and the problem is used in different group modes according to the problem, and the specific mode in this group is used according to a particular situation.