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)