https://github.com/falberthen/solid_101
A simple showcase implementing and rendering geometric shapes using all five SOLID principles.
https://github.com/falberthen/solid_101
clean-code net5 solid-principles
Last synced: 5 months ago
JSON representation
A simple showcase implementing and rendering geometric shapes using all five SOLID principles.
- Host: GitHub
- URL: https://github.com/falberthen/solid_101
- Owner: falberthen
- License: mit
- Created: 2021-03-08T00:21:23.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-24T05:07:48.000Z (over 1 year ago)
- Last Synced: 2025-04-01T05:08:06.526Z (6 months ago)
- Topics: clean-code, net5, solid-principles
- Language: C#
- Homepage:
- Size: 19.5 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# SOLID 101
`SOLID 101` is a study project using .NET 8.0 and C# to showcase all five SOLID principles.
Check the blog for a detailed walkthrough.
![]()
The 5 SOLID principles are:
---
#### S - Single-responsibility principle
> A class should have a single responsibility.#### O - Open-closed principle
> Classes should be open for extension, but closed for modification.#### L - Liskov Substitution principle
> If S is a subtype of T, then objects of type T in a program may be replaced with objects of type S without altering any of the desirable properties of that program.#### I - Interface segregation principle
> Clients should not be forced to depend on methods that they do not use.#### D - Dependency Inversion principle
> High-level modules should not depend on low-level modules. Both should depend on abstractions.
Abstractions should not depend on details. Details should depend on abstractions.
References:
---- https://www.educative.io/blog/solid-principles-oop-c-sharp
- https://sites.google.com/site/unclebobconsultingllc/getting-a-solid-start
- https://medium.com/backticks-tildes/the-s-o-l-i-d-principles-in-pictures-b34ce2f1e898