Design Pattern Practical Case Series Description

Source: Internet
Author: User

Design patterns when compared to the abstract, the real use of it is relatively simple, and the real commonly used in fact are some easy-to-use mode.

But many of the materials that introduce design patterns are examples of code that do not have practical meaning and are not easy to understand and memorize.

In this series I will use the actual case and code of some projects to summarize the design pattern, hope really helps to understand.

A wide variety of design patterns, here are some of the actual application of the project, can chew, sometimes really mastered some, and then see the other will extrapolate.

Common design Pattern Classification:

1. Create type
The object is no longer instantiated by us when the object is created, but rather by a program that determines how the object is created based on a particular scenario, guaranteeing greater performance and better architectural advantage. The creation pattern consists of simple Factory mode (not one of 23 design patterns), factory method, abstract Factory mode, Singleton mode , generator mode, and prototype mode.
2. Structural type
Used to help organize multiple objects into larger structures. The structure mode mainly has the adapter mode adapter, the bridging modebridge, the combination mode component, the adorner mode decorator, the façade mode , the Hengyuan mode flyweight and Proxy mode ProXy.
3. Behavioral Type
Used to help communicate the objects between systems, and how to control the processes in complex systems. Behavioral patterns include command- mode commands, interpreter-mode, iterator-mode, mediator-mode, Memo-mode, Observer -mode, status-mode state, policy -mode, template-mode, and visitor-mode.

Other articles to refer to:

Http://www.cnblogs.com/maowang1991/archive/2013/04/15/3023236.html

http://blog.csdn.net/xsl1990/article/details/16359289

Design Pattern Practical Case Series Description

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.