since [gof95] is the first book on the software model, oo one of the most popular , therefore, some people often use the design pattern ( Design Pattern ) it refers to any kind of architecture, design, and implementation of Programs of all direct processing software.. Others stressed that three different layers of models should be divided: Architecture Pattern ) , design mode (design
pattern) . Example (idiom) . The example is sometimes called Code mode (coding
pattern) .
The threeDifferencesIn
There are three different modes on their respective abstract levels and specific levels. The architecture model is a high-level system strategy involving large-scale components, as well as the overall nature and mechanics. The quality of the architecture model may affect
Overall Layout and framework structure. The design pattern is a medium-scale structure strategy. These medium-sized structures implement the behavior of some large-scale components and their relationships. The good or bad mode does not affect the system
Overall Layout and overall framework. The Design Pattern Defines the microstructure of a subsystem or component. The code mode (or example) is a specific example related to a specific language.Programming Skills. The quality of the code pattern affects the underlying details of the internal and external structures or behaviors of a medium-scale component, but does not affect the medium-scale structure of a component or subsystem, it will not affect the overall layout of the system and the large-scale framework.
Code mode or example(Coding PatternOrIdiom)
The code mode (or example) is a lower-level modeProgramming LanguageClosely related. The code mode describes how to use the characteristics of a specific programming language to implement certain specific aspects or relationships of a component.
Examples of well-known code patterns include double-check locks (Double-check
Locking) Mode.
Design Mode(Design pattern)
A Design Pattern provides an outline design that extracts components in subsystems or software systems, or links between them. Design Pattern description commonly exists in PhaseInterconnectionThis structure solves general design problems in a certain background.
Design Patterns are often divided into different types, common types include:
Creation design patterns, such as factory methods (Factory method) Mode,Abstract Factory(Abstract
Factory) Mode, prototype (Prototype) Mode, Singleton (Singleton) Mode, build (Builder) Mode
structural design patterns, such as merging ( composite ) mode, decoration ( decorator ) mode, proxy ( proxy ) mode, and metadata ( flyweight ) mode, facade ( facade ) mode, bridge ( bridge )
Behavior mode, such as the template method (Template Method) Mode, observer (Observer) Mode,IterationChild (Iterator) Mode, responsibility chain (Chain of responsibility) Mode, Memorandum (Memento) Mode, command (Command) Mode, status (State) Mode, visitor (Visitor) Mode.
The above are three classic types, but there are actually many other types, suchFundamentalType,PartitionType,RelationType, etc.
When the design pattern is implemented in a specific programming language, the code pattern is often used. For example (SingletonThe implementation of the pattern usually involves the dual-check lock (Double-check locking) Mode.
Architecture Mode(Invalid tural pattern)
An architecture model describes the basic structure organization or outline of a software system. The architecture model provides subsystems defined in advance, specifying their responsibilities, and providing rules and guidelines for organizing them together. Some authors call this architecture model a system model.[Stelting02].
An architecture pattern can often be divided into multiple design patterns for joint use. Apparently,MVCThis mode is used.MVCThe Mode usually includes (Mediator) Mode, policy (Strategy) Mode, synthesis (Composite) Mode, observer (Observer) Mode.
In addition, common architecture models include:
· Layers(Layered) Mode, also knownTiersMode
· Blackboard(Blackboard) Mode
· Broker(Intermediary) Mode
· Distributed Process(Decentralized process) Mode
· Microkernel(Micro-core) Mode
Architecture models are often divided into the following types:
I,From mud to structureType. Helps architects rationally divide the system to avoid the formation of an objectOcean(A sea
Of Objects). IncludingLayers(Layered) mode,Blackboard(Blackboard) mode,Pipes/Filters(Pipeline/Filter.
Ii. Distributed Systems (Distributed Systems. Provides complete architecture design for distributed systems, including imageBroker(Intermediary) mode.
3. Human-Machine Interaction (Interactive SystemsType, supporting the architecture design of a system with a human-machine interaction interface. Examples include:MVC(Model-View-Controller) Mode,Pac(Presentation-extract action-control) Mode.
IV,Adaptable SystemsType, supporting application systems to adapt to changes in technology and software functional requirements. For exampleReflection(Reflection) mode,Microkernel(Micro-core) mode.
Form top