5 ms·
Fair enough. It's probably a matter of taste to some extend. I generally don't like too much structure unless there are clear benefits and DI doesn't seem to h
by troels 11y ago
Fair enough. It's probably a matter of taste to some extend.
I generally don't like too much structure unless there are clear benefits and DI doesn't seem to hold up on that scale. The problem it's solving has traditionally been solved with a dozen global variables. And while the purists may scuff at this, I find that in practise it's never an issue in otherwise well structured code.
- JustSomeNobody 11y agoToo many people reach for DI first where some quiet time with a pencil and paper could produce a much better design that doesn't need a DI framework.