Inversion of Control, in which software provides a mechanism for other code to plug into, is a powerful way of modularising code. It may sound complicated, but it can be achieved in Python with very little work.
In this talk I examine three different techniques for inversion of control:
- Dependency Injection;
- Configuration Registry;
- Subscriber Registry.
You may also find it interesting to read my blog post about inversion of control.