Skip to content

tamkovich/solid-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solid principles with python

Read more:

Structure:

  • On the 1st stage we had a simple file srp/bad.py
  • Then I learned how to improve this code with SR principle srp/good.py
  • But I noticed that it doesn't follow the Open-closed principle, and I implemented ocp.py
  • It was hard to remember, but I implemented also lsp/good.py which follows The Liskov substitution principle (LSP)
  • A few moments later and with the new example based on mamals I learned The Interface Segregation Principle (ISP) isp/good.py
  • The Dependency Inversion Principle (DIP) - the most funny because I think that most of my code looks like dip/bad.py and it would be great to improve this to the good version

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages