Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: