Design patterns

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

The classic "design pattern" a Book summed up 23 kinds of design patterns, according to "learn" a book design patterns are classified as follows:

1.Creation mode

As we mentioned before, social division of labor is getting smaller, so in the aspect of software design, the use of object creation and object separation has become the inevitable trend. Because a lot of resource object creation consumes system, so the object creation is studied, which can efficiently is to create the type of object to create the problem. There are 6 specific creation mode available for study, they are:

Simple factory pattern(Simple Factory),

Factory method pattern(Factory Method),

Abstract factory pattern(Abstract Factory),

Creator pattern(Builder),

Prototype model(Prototype),

The singleton pattern(Singleton).

Description: strictly speaking, one of the 23 kinds of design patterns, simple factory pattern is not summarized by GoF.

2.Structure mode

After solving the problems of object creation, the dependence between object and object has become the focus of developers, because of how to design the structure of an object, inheritance and dependency will affect program maintainability, robustness of code, coupling etc.. Design of object structure is easy to reflect the design level, there are 7 specific structural patterns available for study, they are:

Appearance model(Facade),

Adapter pattern(Adapter),

Proxy mode(Proxy),

Decorative pattern(Decorator),

Bridge pattern(Bridge),

Combination mode(Composite),


3.Behavior pattern

After all in the creation of problem structure and the object of the solution, leaving the behavior problems of object, if the behavior of design object is good, then the behavior of objects will be more clearly, the efficiency will improve cooperation between them, there are 11 specific behavior pattern for study, they are:

The template method pattern(Template Method),

The observer pattern(Observer),

The state model(State),

The strategy pattern(Strategy),

Chain of responsibility pattern(Chain of Responsibility),

Command mode(Command),

The visitor pattern(Visitor),

Mediator pattern(Mediator),

The memo mode(Memento),

The iterator pattern(Iterator),

The Interpreter pattern(Interpreter).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Helena at November 16, 2013 - 11:44 AM