Skip to content

How to live better without Dependency Injection

konmik.com
3 pointskentor2 comments
On HN

Comments

Dependency injection is an idea that looks nice in theory, but it soon becomes pretty messy in practice. Without DI it is in general not too difficult to debug how an object is created. With DI you will also have to debug through the DI code. Fixing problems with DI configurations is one of my least favorite activities.

Say what you will about global variables, they're at least an ethos. :P

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.