行为型模式
Software Architecture & Engineering · 11 notes
- Template Methodhistorical
The template-method pattern applies when the overall algorithm steps are fixed while some parts vary, with Java and Go implementations and a combined template/factory/strategy example.
- State Patternhistorical
The state pattern selects different processing logic according to the current state, with Java and Go examples.
- Strategy Patternhistorical
The strategy pattern selects one of several algorithms for accomplishing the same task according to a type or context, with Java and Go examples.
- Observer Patternhistorical
The observer pattern broadcasts state changes from a subject to observers, with Java, Go, and application examples.
- Chain of Responsibilityhistorical
The chain-of-responsibility pattern links handlers that can process the same type of request, with Java, Go, and filter-chain examples.
- Mediator Patternhistorical
Mediator-pattern notes with UML, a Java department example, and a Go computer-component example.
- Command Patternhistorical
Command-pattern notes with a Java Course example, command objects, and a command invoker.
- Memento Patternhistorical
Memento-pattern notes showing how to save an object's state and restore it later.
- Visitor Patternhistorical
Visitor-pattern notes separating data structures from operations, with a Java course example.
- Iterator Patternhistorical
Iterator-pattern notes showing Java and Go implementations for traversing aggregate objects.