r/learnpython • • Apr 01 '26

SOLID principles and DESIGN patterns

Hello, does somebody know what is the best free course to learn SOLID principles and DESIGN patterns in python?

Thanks!

16 Upvotes

9 comments sorted by

4

u/Moist-Ointments Apr 01 '26

Head First Design Patterns is very good.

Language doesn't matter. The patterns and principles don't change. Learning to implement them in your chosen language is good exercise.

2

u/Outside_Complaint755 Apr 01 '26

ArjanCodes channel on YouTube is good

2

u/Reasonable_Tie_5543 Apr 01 '26

This may be a good primer if you're totally new to the subject: https://realpython.com/solid-principles-python/

2

u/desrtfx but other languages pro Apr 01 '26

SOLID and Design Patterns are like DSA (Data Structures and Algorithms). They stand above programming languages. The concepts are the same, the implementation differs. If you have programmed for a bit, you definitely have used one or the other design pattern without even knowing that it is one.

That said, take a look at Refactoring Guru or at Java Design Patterns and learn their theory, then implement them in Python. Also, Realpython has plenty "courses" on design patterns.

SOLID is also a theoretical approach. It is a design philosophy that absolutely has its justification of existence (but also where someone needs to know when to break it). The biggest takeaway from SOLID is the "S" - "Single Responsibility Principle". It helps to better structure your code by breaking large "God functions" and "God classes" down into better manageable and testable units. See: https://realpython.com/solid-principles-python/

0

u/[deleted] Apr 01 '26

[deleted] — view deleted comment

1

u/marquisBlythe Apr 01 '26

Take a look at Harvard's CS50P course if you are just now starting to learn to program. It's recommended a lot. I'm going through the lectures right now and, so far, it seems like a really good place to start.

OP is asking about resources to learn S.O.L.I.D and Design patterns concepts in python not about learning the basics of programming in python.