The most comprehensive design mode guide catalogue (full version)

Source: Internet
Author: User

Christmas Gift!

In 2012-2013, Sunny published more than 100 articles related to design pattern learning in the CSDN technology blog, covering seven object-oriented design principles and 24 design patterns (23 Gof Design Patterns + Simple factory models), in order to facilitate learning, Now the links of all the articles have been sorted out, I hope to bring you help!

Merry Christmas to you all! Trivia: The workload of this article is much more than the previous estimate, almost the entire Christmas Eve spent on it,

Basic knowledge

Design Pattern Overview

From the moves and the internal strength--The design Pattern Overview (a): Where does the design pattern come from?

Starting with the moves and the internal strength--an overview of design patterns (b): What is the design pattern?

Starting with the moves and the internal strength--an overview of design patterns (c): What is the use of design patterns? Attached: Personal views

Object-Oriented design principles

An overview of object-oriented design principles

Single responsibility principle of object-oriented design principle

Open and close principle of object-oriented design principle

The principle of object-oriented design principle in the Richter scale substitution

Dependency reversal principle of object-oriented design principle

Interface isolation principle of object-oriented design principle

The principle of object-oriented design in synthetic multiplexing

The principle of object-oriented design for the DISA rule

Six Create-mode

Simple Factory mode-simple Factory pattern "Learning difficulty: ★★☆☆☆, frequency of use: ★★★☆☆"

Factory three Brothers simple Factory mode (i): Design of the chart library

Factory three Brothers Simple factory model (ii): Overview of the Simple factory model

Factory three Brothers Simple Factory mode (iii): Simple Factory mode solution for Chart Library

Factory three Brothers simple Factory mode (iv): Chart Library solution improvements, simple factory model simplification, simple factory model summary

Factory mode-factory method pattern "Learning difficulty: ★★☆☆☆, Frequency: ★★★★★"

Factory three Brothers factory method mode (i): the design of the logger

Factory three Brothers factory method model (ii): Overview of Factory method models

Factory three Brothers factory method mode (iii): Logger's Factory method mode solution, reflection and configuration file

Factory three Brothers factory method mode (iv): Heavy-duty factory method, factory method Concealment, factory method Model summary

Abstract Factory mode-abstract Factory pattern "Learning difficulty: ★★★★☆, frequency of use: ★★★★★"

Factory three Brothers abstract Factory mode (i): initial design of Interface Skin Library

Factory three Brothers abstract factory model (ii): Product grade structure and product family

Factory three Brothers abstract Factory mode (iii): Abstract Factory Model Overview

Factory three Brothers abstract Factory mode (iv): Abstract Factory mode Solution for Interface Skin Library

Factory three Brothers abstract Factory model (V): "Opening and closing principle" of the tilt, abstract factory model summary

Singleton pattern-singleton Pattern "Learning difficulty: ★☆☆☆☆, Usage frequency: ★★★★☆"

Ensuring the uniqueness of an object-singleton mode (i): motivation of Singleton Mode, overview of singleton mode

Ensuring the uniqueness of objects--singleton mode (ii): Design and implementation of load balancer

Ensuring the uniqueness of an object--singleton Mode (iii): Discussion on a hungry man single case and lazy-type single case

Ensuring the uniqueness of an object-singleton mode (iv): A Better Singleton implementation method (static inner Class)

Ensuring the uniqueness of an object--singleton mode (v): Summary of single-case patterns

Prototype mode-prototype pattern "Learning difficulty: ★★★☆☆, Usage frequency: ★★★☆☆"

Cloning of objects-prototype mode (i): Similar work weekly, prototype model overview

Cloning of objects-prototype mode (II): Prototype mode solution for weekly work

Cloning of objects-prototype mode (III): Weekly Report with Attachments "Shallow clone, Deep clone"

Cloning of objects-prototype mode (IV): Introduction and implementation of prototype manager, prototype model summary

Builder mode-builder pattern "Learning difficulty: ★★★★☆, Usage frequency: ★★☆☆☆"

Assembly and creation of complex objects--builder mode (i): Game character design, builder mode overview

Assembly and creation of complex objects--builder mode (ii): Builder mode solution for game character design

Assembly and creation of complex objects--builder Model (III): A further discussion of the Director, a summary of the builders ' model

Seven structural modes

Adapter Mode-adapter Pattern "Learning difficulty: ★★☆☆☆, Usage frequency: ★★★★☆"

Incompatible fabric coordination--Adapter mode (i): no source algorithm library, adapter mode overview

Incompatible fabric coordination--Adapter mode (ii): Adapter mode solution with no source algorithm library

Incompatible fabric coordination--Adapter mode (III): Class Adapter, bidirectional adapter

Incompatible fabric coordination--Adapter mode (quad): Default adapter, Adapter mode Summary

Bridging Mode-bridge pattern "Learning Difficulty:★★★☆☆, usage frequency:★★★☆☆"

Processing multi-dimensional change--bridging mode (i): cross-platform Image browsing system

Processing multi-dimensional changes-bridging mode (ii): Overview of bridging modes

Processing multi-dimensional change-bridging mode (iii): Bridging mode Solution for cross-platform image browsing system

Processing multi-dimensional changes-bridging mode (iv): Adapter mode and bridging mode, bridging mode Summary

Combination mode-composite pattern "Learning difficulty: ★★★☆☆, Usage frequency: ★★★★☆"

Processing of tree structure--Combination mode (i): Design the framework of anti-virus software

The processing of tree structure--combination mode (ii): An overview of the combined mode

Processing of tree structure--combination mode (iii): A combined mode solution of anti-virus software frame structure

Processing of tree structure--combination mode (four): Transparent combination mode and safe combination mode

Processing of tree structure--combination mode (V): Company organization structure, combined model summary

Decoration mode-decorator pattern "Learning difficulty: ★★★☆☆, Frequency: ★★★☆☆"

Extended system Function--decoration mode (i): Design of component library of graphical interface

Extended system Function--decoration mode (ii): Overview of decorative modes

Extended system Function--decoration mode (iii): Decorative mode solution for GUI component library

Extended system Function--decorative mode (four): transparent decorative mode and translucent decoration mode, decoration mode considerations, Decoration Mode Summary

Appearance mode-facade pattern "Learning difficulty: ★☆☆☆☆, Usage frequency: ★★★★★"

Appearance mode (i): Appearance mode overview, appearance pattern structure and implementation

In-depth appearance mode (ii): Appearance mode application example (file encryption module)

In-depth appearance mode (iii): Abstract appearance class, appearance pattern effect and applicable scene

Enjoy meta-mode-flyweight pattern "Learning difficulty: ★★★★☆, Usage frequency: ★☆☆☆☆"

Implement object Reuse----Enjoy meta-mode (a): The design of Go chess piece, enjoy the meta-mode overview (top)

Implement object reuse--Enjoy meta-mode (ii): Overview of the enjoy meta-mode (II.)

Implement object Reuse----Enjoy meta-mode (III): The solution to enjoy meta-mode of Weiqi chess

Implement object reuse--Enjoy meta-mode (iv): Go chess with external status solution

Implement object reuse--Enjoy meta-mode (V): Simple to enjoy the meta-mode and compound to enjoy the meta-model, on the enjoyment of the meta-model of several complementary, enjoy the meta-model summary

Proxy mode-proxy pattern "Learning difficulty: ★★★☆☆, Usage frequency: ★★★★☆"

Proxy mode (i): Agent mode overview, proxy mode structure and implementation

Proxy mode (ii): Proxy mode application example (Charge Business Information Inquiry system)

Proxy mode (iii): Remote agent, virtual agent, buffer agent

Proxy mode (iv): Proxy mode effect and applicable scenario

11 Behavioral Patterns

Responsibility chain mode-chain of Responsibility pattern "learning difficulty: ★★★☆☆, frequency of use: ★★☆☆☆"

Chain processing of requests--responsibility chain mode (i): Classification approval of purchase orders

Chain processing of requests--responsibility chain Mode (II): An overview of the responsibility chain model

Chain processing of requests--responsibility chain Mode (III): Responsibility chain model solution for purchase order classification approval

Chain processing of requests--responsibility chain Mode (iv): pure and impure responsibility chain model, responsibility chain Model summary

Command mode-command pattern "Learning Difficulty: ★ ¡ï, use frequency:★★★★☆"

Request sender and receiver decoupling--command mode (i): Custom function keys, Command mode overview

Request sender and receiver decoupling--command mode (ii): Custom Function Key Command mode solution

Request sender and receiver decoupling--command mode (III): implementation of command queue

Request sender and receiver decoupling--command mode (IV): Simple implementation of undo operation

Request sender and receiver decoupling--command mode (v): request log

Request sender and receiver decoupling--command mode (vi): Macro command, Command mode summary

Interpreter mode-interpreter pattern "Learning difficulty: ★★★★★, Usage frequency: ★☆☆☆☆"

Implementation of custom language--interpreter mode (i): Robot control Program

Implementation of custom language--interpreter mode (ii): Grammar rules and abstract syntax tree

Implementation of the custom language--interpreter mode (III): An overview of the interpreter pattern

Implementation of the custom language--interpreter mode (iv): The Interpreter mode solution for robot control programs

Implementation of custom language--interpreter mode (V): A further discussion on the role of context

Implementation of custom language--interpreter mode (vi): Interpreter Pattern Summary

Iterator pattern-iterator pattern "Learning difficulty: ★★★☆☆, Usage frequency: ★★★★★"

Iterating through the elements in an aggregation object--iterator mode (i): Data traversal in Sales management system

Traversing elements in an aggregation object--iterator mode (ii): An overview of the iterator pattern

Traversing elements in an aggregation object--iterator pattern (iii): Iterative pattern Solution for data traversal in sales management system

Traversing elements in an aggregation object-iterator mode (iv): Implementing iterators using Inner classes

Traversing elements in an aggregation object-iterator mode (v): Use of JDK built-in iterators

Iterate over elements in an aggregation object--iterator pattern (vi): Iterator pattern Summary

-mediator pattern "Learning difficulty: ★★★☆☆, Usage frequency: ★★☆☆☆"

Coordinate interactions between multiple objects-the mediator pattern (i): the initial design of the Customer Information Management window

Reconcile interactions between multiple objects-the mediator pattern (ii): An overview of the broker pattern

Coordinate interactions between multiple objects-the mediator pattern (iii): The broker-mode solution for the Customer Information Management window

Coordinate interactions between multiple objects-the mediator pattern (iv): The extension of the mediator and colleague classes

Reconciling interactions between multiple objects-the mediator pattern (v): A summary of the broker pattern

Memo mode-memento pattern "Learning difficulty: ★★☆☆☆, Usage frequency: ★★☆☆☆"

Implementation of the Undo function--Memo mode (a): Chinese chess that can be undo

Implementation of undo function--Memo Mode (ii): Overview of Memo Mode

Implementation of undo function--Memo Mode (iii): Chinese Chess Memo Mode solution

Implementation of undo function--Memo Mode (iv): implement multiple Undo

Implementation of revocation Function--Memo mode (v): A further discussion on the encapsulation of memos, summary of the memorandum pattern

Observer pattern-observer Pattern "Learning difficulty: ★★★☆☆, Usage frequency: ★★★★★"

Linkage between objects--observer mode (i): The design of multiplayer online battle game

Linkage between objects--observer pattern (II): An overview of the Observer pattern

Linkage between objects--observer mode (III): Viewer mode solution for multiplayer online battle games

Linkage between objects--observer pattern (IV): JDK support for observer patterns

Linkage between objects--observer pattern (V): Observer pattern vs. Java event handling

Linkage between objects--observer pattern (VI): Observer pattern and MVC, Observer pattern Summary

State mode-state Pattern "Learning difficulty: ★★★☆☆, Usage frequency: ★★★☆☆"

Dealing with various states of objects and their mutual transformations-state mode (i): Design of account class in banking system

Dealing with the various states of objects and their mutual transformations-state mode (ii): State mode overview

Dealing with various states of objects and their mutual transformations-state mode (III): state mode solution for account classes

Dealing with various states of objects and their mutual transformations-state mode (IV): implementation of shared State

Dealing with the various states of objects and their mutual transformations-state mode (V): Implementing state transitions using environment classes

Dealing with various states of objects and their mutual transformations--state mode (vi): Summary of State patterns

Strategy mode-strategy Pattern "Learning difficulty: ★☆☆☆☆, Usage frequency: ★★★★☆"

Package and switch of algorithm--strategy mode (a): Movie ticket Discount Scheme

Encapsulation and switching of algorithm--strategy mode (II): An overview of the policy model

Package and switch of algorithm--strategy mode (III): Strategy mode solution for movie ticket discount scheme

Package and switch of algorithm--strategy mode (four): Two typical application of strategy mode, summary of strategy mode

Template approach pattern-template method pattern "Learning difficulty: ★★☆☆☆, Frequency: ★★★☆☆"

Template method Pattern depth analysis (a): Template method Pattern Overview, template method pattern structure and implementation

Template method Pattern Depth Analysis (ii): Template method Pattern Application Example (Bank interest Calculation module)

Template method Pattern Depth Analysis (iii): Use of Hook method, template method mode effect and applicable scene

Visitor Pattern-visitor Pattern "Learning difficulty: ★★★★☆, Usage frequency: ★☆☆☆☆"

Manipulating complex object Structures-visitor mode (i): Summary of Employee data in OA system

Manipulating complex object Structures--visitor Mode (ii): Overview of visitor patterns

Manipulating complex object Structures-Visitor Mode (iii): Visitor pattern Solution for employee data aggregation in OA system

Manipulating complex object structures--visitor pattern (iv): Visitor pattern combined with combination mode, visitor pattern Summary

Design Patterns Fun Learning (review)

Design pattern and football (i): Create pattern

Design Patterns and Soccer (II.): Structural patterns

Design patterns with Soccer (iii): Behavioral patterns (UP)

Design patterns with Soccer (iv): Behavioral patterns (bottom)

Design pattern Synthesis Application Example

Multiplayer online shooter game

Application of design pattern in multiplayer shooting game (i): Abstract Factory mode, builder mode, factory method mode, iterator mode, command mode

Application of design pattern in multiplayer shooting game (II): Observer mode, singleton mode, state mode, adapter mode

Database synchronization System

A database synchronization system for integrated case analysis of design patterns (i): Database synchronization system Overview, builder mode, simple Factory mode

The database synchronization system of design pattern synthesis Case Analysis (ii): Enjoy meta-mode, singleton mode, observer mode, template method mode

The database synchronization system of design pattern Synthesis Case Analysis (III): Strategy mode, combination mode, command mode, responsibility chain mode

Friendship Tip: Please respect the author's labor results, if you want to reprint this blog article please indicate the source! Thank you for your cooperation!

"Liu Wei http://blog.csdn.net/lovelion "

The most comprehensive design mode guide catalogue (full version)

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.