vault backup: 2025-01-17 12:55:18

This commit is contained in:
2025-01-17 12:55:18 +01:00
parent 47a9b81dd0
commit 6d7ee21d5b
4 changed files with 17 additions and 1 deletions

View File

@@ -203,6 +203,21 @@ Patterns are not mutually exclusive and can be used on top of each other.
- ![[Pasted image 20250117112716.png]]
- use an adapter base class (PCLinuxGraphicsAdapter)
- There is no guarantee that it is only the syntax that changes, maybe you need to adapt the semantics as well.
- Object vs class adaption.
- In multiple inheritance classes like C++ you inherit from both Target and Adaptee
- ![[Pasted image 20250117115604.png]]
- Relationship to fundamental design principles
- design to invariants/desing for change
- encapsulation
- liskov substitutability
- high cohesion/loose coupling
> [!Important] Key Points
> - minimizes code changes
> - portability across multiple providers
> - two versions: object vs class adapter
### Façade
### Bridge