Statement in advance: I am referring to Chen and Wang Bin's "grinding design mode" for the study of design models. I am reading this book carefully and think it is quite good. Then, I sorted out some knowledge points in the book. Although they were not original in the true sense, I also sorted out some other knowledge points, so I dared to write originality on my blog. I hope the author of this book will not mind.
1. Concept of Design Pattern
Design Pattern: a solution that is verified during software development and used to solve repeated and specific problems in a specific environment.
2. Understanding of design patterns
1. The design pattern is a solution to some problems.
2. the design model is not just imagined, but accumulation and summarization of experience.
3. the design model is not static, but constantly evolving.
4. It cannot be said that design patterns are unique in the software industry. In fact, many industries have their own design patterns.
3. Composition of design patterns
1. Mode name
2. Environment and Problems
3. Solution
4. effect: describes the effect of a mode application.
4. Classification of design patterns
1. Creation Mode: abstracts the Object Instantiation process to help create an instance of the object.
2. Structured mode: describes how to combine classes and objects to obtain a larger structure.
3. behavior mode: Describes the assignment of duties between algorithms and objects.
How to Learn:
The theory guides the practice, and the practice in turn deepens the understanding of the theory. Such a repeating cycle leads to a spiral increase.