vault backup: 2025-01-17 12:55:18
This commit is contained in:
1
.obsidian/plugins/text-extractor/cache/da040a3f8a6f4e9876042653a2b55238.json
vendored
Normal file
1
.obsidian/plugins/text-extractor/cache/da040a3f8a6f4e9876042653a2b55238.json
vendored
Normal 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"}
|
||||||
2
.obsidian/workspace.json
vendored
2
.obsidian/workspace.json
vendored
@@ -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",
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
BIN
Attachments/Pasted image 20250117115604.png
Normal file
BIN
Attachments/Pasted image 20250117115604.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 920 KiB |
Reference in New Issue
Block a user