Dependency Injection, Inversion of Control, and You
October 17, 2023
django-di
The idea that a library calls your code instead of you calling a library (framework).
Don't call us, we'll call you (Hollywood's Law)
Instead of
your code => library
with IoC
your code <= library (inverted)
setUp
tearDown
An IoC technique for separating construction from use.
We pass a class its dependencies instead of creating them within the class.
$10 word for a 5𝇍 concept
Taking things a step further with DI Containers
Zupah kewl summary
Show `ioc*.py` examples after this slide