From 1f8c417a76f32f6f1239cf0238c3b60aba824115 Mon Sep 17 00:00:00 2001 From: mistermicheels <22038058+mistermicheels@users.noreply.github.com> Date: Sun, 14 Aug 2022 14:23:15 +0200 Subject: [PATCH] image names to lowercase The write-website-data script was transforming image URLs to lowercase. However, some image file names were uppercase. This created issues with Docusaurus checks on Netlify. Unlike Windows and OSX, Netlify uses a case-sensitive file system. --- .../oo-design/SOLID-principles.md | 20 +++++++++--------- .../{DIP-after.png => dip-after.png} | Bin .../{DIP-before.png => dip-before.png} | Bin .../{ISP-after.png => isp-after.png} | Bin .../{ISP-before.png => isp-before.png} | Bin .../{Observer.png => observer.png} | Bin ...png => ocp-after-adding-functionality.png} | Bin ...ng => ocp-before-adding-functionality.png} | Bin .../{SRP-after.png => srp-after.png} | Bin .../{SRP-before.png => srp-before.png} | Bin 10 files changed, 10 insertions(+), 10 deletions(-) rename architecture-design/oo-design/_img/SOLID-principles/{DIP-after.png => dip-after.png} (100%) rename architecture-design/oo-design/_img/SOLID-principles/{DIP-before.png => dip-before.png} (100%) rename architecture-design/oo-design/_img/SOLID-principles/{ISP-after.png => isp-after.png} (100%) rename architecture-design/oo-design/_img/SOLID-principles/{ISP-before.png => isp-before.png} (100%) rename architecture-design/oo-design/_img/SOLID-principles/{Observer.png => observer.png} (100%) rename architecture-design/oo-design/_img/SOLID-principles/{OCP-after-adding-functionality.png => ocp-after-adding-functionality.png} (100%) rename architecture-design/oo-design/_img/SOLID-principles/{OCP-before-adding-functionality.png => ocp-before-adding-functionality.png} (100%) rename architecture-design/oo-design/_img/SOLID-principles/{SRP-after.png => srp-after.png} (100%) rename architecture-design/oo-design/_img/SOLID-principles/{SRP-before.png => srp-before.png} (100%) diff --git a/architecture-design/oo-design/SOLID-principles.md b/architecture-design/oo-design/SOLID-principles.md index 3ed834a..dd22f1c 100644 --- a/architecture-design/oo-design/SOLID-principles.md +++ b/architecture-design/oo-design/SOLID-principles.md @@ -1,6 +1,6 @@ --- description: An overview of the SOLID principles for object-oriented design -last_modified: 2020-05-31T14:45:09+02:00 +last_modified: 2022-08-14T12:23:43.293Z --- # SOLID principles @@ -40,7 +40,7 @@ Benefits: Before: financial report generation logic (what to include, calculations) and presentation logic (negative in red, pagination, ...) are mixed. -![SRP before](_img/SOLID-principles/SRP-before.png) +![SRP before](_img/SOLID-principles/srp-before.png) Problems: @@ -49,7 +49,7 @@ Problems: Application of SRP: separate report generation and presentation -![SRP after](_img/SOLID-principles/SRP-after.png) +![SRP after](_img/SOLID-principles/srp-after.png) ## Open–closed principle (OCP) @@ -76,11 +76,11 @@ What extension could mean here: Interface for `FinancialReportFormatter` -![OCP before adding functionality](_img/SOLID-principles/OCP-before-adding-functionality.png) +![OCP before adding functionality](_img/SOLID-principles/ocp-before-adding-functionality.png) Adding PDF format support without changing existing report generation code -![OCP after adding functionality](_img/SOLID-principles/OCP-after-adding-functionality.png) +![OCP after adding functionality](_img/SOLID-principles/ocp-after-adding-functionality.png) ## Liskov substitution principle (LSP) @@ -160,11 +160,11 @@ Also applies at higher level, e.g. selecting third-party dependencies: Before: -![ISP before](_img/SOLID-principles/ISP-before.png) +![ISP before](_img/SOLID-principles/isp-before.png) After: -![ISP after](_img/SOLID-principles/ISP-after.png) +![ISP after](_img/SOLID-principles/isp-after.png) ## Dependency inversion principle (DIP) @@ -181,13 +181,13 @@ More relaxed formulation: Initial situation -![DIP before](_img/SOLID-principles/DIP-before.png) +![DIP before](_img/SOLID-principles/dip-before.png) Problem: Dependency points from general part (business logic) to specific part (presentation) Solution: introduce abstraction to apply DIP -![DIP after](_img/SOLID-principles/DIP-after.png) +![DIP after](_img/SOLID-principles/dip-after.png) Flow of control still from general part (business logic) to specific part (presentation), but direction of dependency is now reversed @@ -197,7 +197,7 @@ Flow of control still from general part (business logic) to specific part (prese Allows a general class to trigger methods on specific classes by letting the specific classes subscribe to the general class. When using this pattern, the general class does not know about the specific classes. All it knows about is an `Observer` interface that the specific classes implement. -![Observer](_img/SOLID-principles/Observer.png) +![Observer](_img/SOLID-principles/observer.png) ## Resources diff --git a/architecture-design/oo-design/_img/SOLID-principles/DIP-after.png b/architecture-design/oo-design/_img/SOLID-principles/dip-after.png similarity index 100% rename from architecture-design/oo-design/_img/SOLID-principles/DIP-after.png rename to architecture-design/oo-design/_img/SOLID-principles/dip-after.png diff --git a/architecture-design/oo-design/_img/SOLID-principles/DIP-before.png b/architecture-design/oo-design/_img/SOLID-principles/dip-before.png similarity index 100% rename from architecture-design/oo-design/_img/SOLID-principles/DIP-before.png rename to architecture-design/oo-design/_img/SOLID-principles/dip-before.png diff --git a/architecture-design/oo-design/_img/SOLID-principles/ISP-after.png b/architecture-design/oo-design/_img/SOLID-principles/isp-after.png similarity index 100% rename from architecture-design/oo-design/_img/SOLID-principles/ISP-after.png rename to architecture-design/oo-design/_img/SOLID-principles/isp-after.png diff --git a/architecture-design/oo-design/_img/SOLID-principles/ISP-before.png b/architecture-design/oo-design/_img/SOLID-principles/isp-before.png similarity index 100% rename from architecture-design/oo-design/_img/SOLID-principles/ISP-before.png rename to architecture-design/oo-design/_img/SOLID-principles/isp-before.png diff --git a/architecture-design/oo-design/_img/SOLID-principles/Observer.png b/architecture-design/oo-design/_img/SOLID-principles/observer.png similarity index 100% rename from architecture-design/oo-design/_img/SOLID-principles/Observer.png rename to architecture-design/oo-design/_img/SOLID-principles/observer.png diff --git a/architecture-design/oo-design/_img/SOLID-principles/OCP-after-adding-functionality.png b/architecture-design/oo-design/_img/SOLID-principles/ocp-after-adding-functionality.png similarity index 100% rename from architecture-design/oo-design/_img/SOLID-principles/OCP-after-adding-functionality.png rename to architecture-design/oo-design/_img/SOLID-principles/ocp-after-adding-functionality.png diff --git a/architecture-design/oo-design/_img/SOLID-principles/OCP-before-adding-functionality.png b/architecture-design/oo-design/_img/SOLID-principles/ocp-before-adding-functionality.png similarity index 100% rename from architecture-design/oo-design/_img/SOLID-principles/OCP-before-adding-functionality.png rename to architecture-design/oo-design/_img/SOLID-principles/ocp-before-adding-functionality.png diff --git a/architecture-design/oo-design/_img/SOLID-principles/SRP-after.png b/architecture-design/oo-design/_img/SOLID-principles/srp-after.png similarity index 100% rename from architecture-design/oo-design/_img/SOLID-principles/SRP-after.png rename to architecture-design/oo-design/_img/SOLID-principles/srp-after.png diff --git a/architecture-design/oo-design/_img/SOLID-principles/SRP-before.png b/architecture-design/oo-design/_img/SOLID-principles/srp-before.png similarity index 100% rename from architecture-design/oo-design/_img/SOLID-principles/SRP-before.png rename to architecture-design/oo-design/_img/SOLID-principles/srp-before.png