Only DEPENDENCY INJECTION will save you from this spaghetti code!
Python for Everyone Python for Everyone
5.85K subscribers
6,690 views
343

 Published On Aug 30, 2023

Dependency injection is the key to decoupling code. In this video you learn how to use DI and polymorphism to achieve the holy grail in software architecture: Adhering to the OPEN-CLOSED principle.

C H A P T E R S
0:18 The problem of tightly coupled code
04:30 Dependency injection through the class initializer
05:50 Polymorphism and DI go hand in hand
06:50 No more OPEN-CLOSED PRINCIPLE violations

M Y O N L I N E T R A I N I N G
πŸŽ“Like my style of teaching? Try free chapters of online courses: https://pythonforeveryone.com

#dependencyinjection #classinitializer #python

show more

Share/Embed