Skip to content

New pattern proposal: Use solid principles #357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions docs/catalog/web/use-solid-principles.md
Original file line number Diff line number Diff line change
@@ -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)