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

@@ -0,0 +1 @@
{"path":"Attachments/Pasted image 20250117115604.png","text":"Variations on the Theme: Class Adapter in Java (Almost) _ Adaptee | et il 5 i x","libVersion":"0.3.2","langs":"deu+eng+fra"}

View File

@@ -537,6 +537,7 @@
}, },
"active": "0276c662bb61f53b", "active": "0276c662bb61f53b",
"lastOpenFiles": [ "lastOpenFiles": [
"Attachments/Pasted image 20250117115604.png",
"Attachments/Pasted image 20250117112716.png", "Attachments/Pasted image 20250117112716.png",
"0 Journal/0 Daily/2025-01-17.sync-conflict-20250117-094333-LIUMLEB.md", "0 Journal/0 Daily/2025-01-17.sync-conflict-20250117-094333-LIUMLEB.md",
"Attachments/Pasted image 20250117104237.png", "Attachments/Pasted image 20250117104237.png",
@@ -557,7 +558,6 @@
"Attachments/Pasted image 20250116163115.png", "Attachments/Pasted image 20250116163115.png",
"Temporary/Untitled 1.md", "Temporary/Untitled 1.md",
"Attachments/Pasted image 20250116161534.png", "Attachments/Pasted image 20250116161534.png",
"Attachments/Pasted image 20250116161217.png",
"Temporary/Untitled.md", "Temporary/Untitled.md",
"5 Media/0 Books/Design Patterns by null.md", "5 Media/0 Books/Design Patterns by null.md",
"5 Media/0 Books/null by null.md", "5 Media/0 Books/null by null.md",

View File

@@ -203,6 +203,21 @@ Patterns are not mutually exclusive and can be used on top of each other.
- ![[Pasted image 20250117112716.png]] - ![[Pasted image 20250117112716.png]]
- use an adapter base class (PCLinuxGraphicsAdapter) - 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. - 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 ### Façade
### Bridge ### Bridge

Binary file not shown.

After

Width:  |  Height:  |  Size: 920 KiB