vault backup: 2025-01-17 12:55:18
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user