- Published on
If I were to pick one Python trick that helps to save you thousands of dollars in unnecessary code refactoring, it would be dependency inversion. In this short example, I am going to show a simple trick that will potentially save you from a lot of frustration and help you write more future-proof code.