Skip to content

MohiFayden/solid-principles-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SOLID Principles with Python and Kotlin Examples

This repository provides practical examples of the SOLID Principles in software design, demonstrated in both Python and Kotlin. The SOLID principles are a set of five design guidelines that help create more maintainable, scalable, and robust software.

Watch on YouTube

Learn more about these principles with detailed explanations and walkthroughs on my YouTube channel:
Subscribe and Watch

Principles Covered

  1. Single Responsibility Principle (SRP)
    A class should have only one reason to change.
    Python Example | Kotlin Example | Watch Video

  2. Open/Closed Principle (OCP)
    A class should be open for extension, but closed for modification.
    Python Example | Kotlin Example | Watch Video

  3. Liskov Substitution Principle (LSP)
    Derived classes should be substitutable for their base classes.
    Python Example | Kotlin Example | Watch Video

  4. Interface Segregation Principle (ISP)
    A client should not be forced to depend on methods it does not use.
    Python Example | Kotlin Example | Watch Video

  5. Dependency Inversion Principle (DIP)
    Depend on abstractions, not on concretions.
    Python Example | Kotlin Example | Watch Video

Repository Structure

The repository is organized into two main directories, each containing examples of SOLID principles:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published