2 ms·
DI Containers Are Code Polluters
- SchizoDuckie 12y agoCall me oldskool, but I wholeheartedly agree. Dependency injection via settings files leads to 'magic' code that's a mess to debug if you're new to a platform/stack (I'm looking at you, Symfony2) No longer can you just click through an object and follow the path to where a dependency comes from, you now need to wade through stacks of code and then end up in some xml/yml/json file.