From c77a80f9a44ed8a74c5423ef6616d3f6b59c3956 Mon Sep 17 00:00:00 2001 From: bjornak3 Date: Mon, 5 May 2025 14:58:07 +0200 Subject: [PATCH] New pattern proposal: Use solid principles Signed-off-by: bjornak3 --- docs/catalog/web/use-solid-principles.md | 37 ++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docs/catalog/web/use-solid-principles.md diff --git a/docs/catalog/web/use-solid-principles.md b/docs/catalog/web/use-solid-principles.md new file mode 100644 index 00000000..a92d5d06 --- /dev/null +++ b/docs/catalog/web/use-solid-principles.md @@ -0,0 +1,37 @@ +--- +version: 1.0 +submitted_by: Bjorna Kalaja +category: Software Design +description: Lower energy consumption of software by staying conform to SOLID principles +tags: + - role:software-engineer + - programming-language +--- + +# Use SOLID principles + +## Description + +From a software design perspective, the way how we write and organise code also contributes to the energy consumed by the software. What contributes to that is the number of cpu cycles that are introduced by different stylings. + +## Solution + +Make sure to stay conform to the SOLID principles when designing software and writing code. + +## SCI Impact + +`SCI = (E * I) + M per R` +[Software Carbon Intensity Spec](https://grnsft.org/sci) + +Staying conform to the SOLID principles, will impact SCI as follows: + +- `E`: When implementing each of the principles in SOLID, will lower the number of CPU cycles and therefore lower the energy consumed by the CPU when the application when performing its tasks. +- `I`: Consuming less energy will also reduce the intensity of carbon emissions. + +## Assumptions + +## Considerations + +## References + +Research paper: [Applying refactoring techniques to improve environmental impact of software applications](https://epub.technikum-wien.at/obvftwhsm/content/titleinfo/10097126)