vault backup: 2025-01-24 16:50:22
This commit is contained in:
@@ -361,6 +361,20 @@ Variation on the theme: Event Channel: many publishers and many subscribers
|
|||||||
> - event channels (variant) supports many publishers and many subscribers on the same channel
|
> - event channels (variant) supports many publishers and many subscribers on the same channel
|
||||||
|
|
||||||
### Template Method
|
### Template Method
|
||||||
|
Prerequisite: Stategy
|
||||||
|
`#ifdef do this` can be replaced with the template method.
|
||||||
|
|
||||||
|
#### Pattern Forces
|
||||||
|
Need to define skeleton of algorithm but defer some details:
|
||||||
|
- make abstract class easier by reminding developers to supply logic for all situation-specific details
|
||||||
|
Added layer of indirection is acceptable
|
||||||
|
|
||||||
|
#### Design Principles
|
||||||
|
|
||||||
|
|
||||||
|
> [!Note] Key Points
|
||||||
|
> Contents
|
||||||
|
|
||||||
|
|
||||||
### Factory Method
|
### Factory Method
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user