Design Patterns 01-design patterns basics 01

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.