/Design-Patterns

Software Design Patterns and SOLID Principles implemented in simple Python code examples.

Primary LanguagePython

SOLID Principles - Python Implementation

Exercise Components

  • Single Responsibility Principle (SRP)
  • Open-Closed Principle (OCP)
  • Liskov Substitution Principle (LSP)
  • Interface Segregation Principle (ISP) - implemented with Multipple Inheritance
  • Dependency Inversion Principle (DIP)
  • Class Adapter Pattern
  • Factory Adapter Pattern
  • Abstract Factory Adapter Pattern
  • 15-slide powerpoint analyzing Event Sourcing Pattern & Retry Pattern from Cloud Design Patterns e-book by Microsoft.

General Info

  • Python version: 3.9.5
  • UML Class Diagrams created with Visio Professional 2019
  • Examples are simple and easy to understand. Every example emphasizes in giving the meaning of each pattern/principle.
  • Every example is followed by its own UML class diagram.