vault backup: 2025-01-24 16:50:22

This commit is contained in:
2025-01-24 16:50:24 +01:00
parent 3f7b3e93e5
commit bc398bd0a3

View File

@@ -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
### 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