by fishnchips · 12y ago · 0 comments
DI code also tends to be more pleasant to test in my experience since it promotes loose coupling.
http://commandcenter.blogspot.com/2014/01/self-referential-f...
And you should probably avoid situations where you suddenly need config objects in 'random places'. This could be a symptom of chaotic API design. But then again, whatever works for you.