Hacker News new | ask | show | jobs
by _pmf_ 4083 days ago
I understand the backlash against Uncle Bob and a lot of other celebrities, but I think Fowler focuses on real, practical aspects and does not bullshit around.

> they're basically there to avoid the use of globals (and hence, tight coupling)

One could say that you merely delegate the management of the globals to the DI framework, just as you do with a ServiceLocator.

1 comments

But in a DI framework, every object has its own name for its dependencies. With ServiceLocator, every object needs to use the ServiceLocator's names, so they are not encapsulated.