Skip to content

Instantly share code, notes, and snippets.

View mohamedayman28's full-sized avatar
🎯
Focusing

Mohamed Ayman mohamedayman28

🎯
Focusing
View GitHub Profile
@mohamedayman28
mohamedayman28 / 1.srp.py
Created August 28, 2021 09:52 — forked from dmmeteo/1.srp.py
SOLID Principles explained in Python with examples.
"""
Single Responsibility Principle
“…You had one job” — Loki to Skurge in Thor: Ragnarok
A class should have only one job.
If a class has more than one responsibility, it becomes coupled.
A change to one responsibility results to modification of the other responsibility.
"""
class Animal:
def __init__(self, name: str):
@mohamedayman28
mohamedayman28 / .gitignore
Created April 28, 2021 21:51 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #