Skip to content

Instantly share code, notes, and snippets.

View dimritium's full-sized avatar

Shubhankar Dimri dimritium

View GitHub Profile
@aksh1618
aksh1618 / Kotlin 1.4 Online Event Summary
Last active July 24, 2021 12:36
Kotlin 1.4 Online Event Summary
Day-wise summaries of talks of the Kotlin 1.4 Online Event
@dmmeteo
dmmeteo / 1.srp.py
Last active June 27, 2025 07:18
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):