Design patterns to learn prequel

At different stages of programming career, understanding of design patterns are different, I believe that with increased experience, you will have to produce more new experience. Books and articles on design patterns very much, but there are a lot of people inspired by the classic discussion, due to various reasons such as old age and translation, design patterns all relevant information and do not define a unified, easy to somewhat different interpretations understand some obscure, some even only part of the meaning of the expression. In the soft test architect exam, there are chapters related to the six principles of object-oriented design and design patterns of the three classifications, explain very classic and snappy words.

Object-oriented design principles of large object 6

Single Responsibility Principle
is designed to single class

Open - closed principle
to extend open, then closed for modification

Richter substitution principle
subclass can replace the parent class

Dependency Inversion principle
to rely on the abstract rather than the concrete realization; an interface for programming, not for the realization of programming.

Reuse combination of principle
to try to use a combination, instead of inheriting relations to the purpose of reuse.

Dimitris principle (the principle of least knowledge)
of an object should be as little knowledge of other objects.

Design patterns can be divided into three categories: creational patterns, structural patterns, behavioral patterns
to create a schema
creation process described in class or object, to provide guidance for the new object is instantiated.

Structural model
compositions described classes or objects, to design the class formed in a larger structure to provide guidance.

Behavioral patterns
describe the interaction and allocation of responsibilities or object classes, providing guidelines for interaction and distribution of responsibilities classes.

Well, if you still have questions about design patterns, could be discussed in the comments area. If you have training needs on design patterns, please contact me within the letter of the station.

Guess you like

Origin www.cnblogs.com/mzsg/p/11982972.html