The original URL will be constantly updated : The process of the Technical Blog "What is design mode – summary" it.zuocheng.net
How was the design pattern born?
- There are things in the field that are constant and some are constantly changing.
- There is always a certain relationship between the unchanging things and the things that change, in accordance with certain rules.
- Because of these specific relationships, experienced designers always make repetitive designs and reuse their designs. They are designed for general purpose and also offer very good design
- A designer without experience, but not aware of these relationships, do not have a good design
- Experienced designers impart good, reused design and experience to inexperienced designers, and describe some of the unchanging relationships between those things, which are the prototypes of design patterns
- After these relationships and designs are collated and summarized, the design pattern is born.
What is the design pattern?
- A reproducible solution for design problems often encountered by program designers (the Smalltalk Companion)
- Set up a series of rules that describe how to accomplish specific tasks in the field of software development
- Focus on and reuse of repeatable structural design schemes
- Presents a repeatable design problem that occurs in a specific design environment and provides a solution
- Identify and identify abstract relationships at the class and instance level or at the component level
The role of design patterns?
- Enhanced scalability/scalability of the design (scalable/scalability)
- Reuse of enhanced Designs
- Common language in the design field (delivery, communication)
A beginner's approach to mastering design patterns
- Imitation – The quickest way to learn and to be more rapid in the process
- Learning Books – Comparatively speaking, learning faster and getting too slow
- Constantly refactor your own code to understand design patterns – the slowest learning efficiency, but the best way to get the most out of the process
- Team discussions, sharing – learning is faster, more rapid, but time is expensive, and team discussions are often not high-frequency activities
How to improve your ability to use design patterns
- Learn the usage scenarios of design patterns and simply use common design patterns
- Transform the design pattern to better meet the business scenario
- Summarize business scenarios, create and assemble new design patterns, so use design patterns must have a lot of experience to accumulate
- The design pattern is used well, without experience, without accumulation
What is design mode – Summary