by hota_mazi · 10y ago · 0 comments
It's only injection if the parameter is passed automatically by a framework. Otherwise, it's parameter passing.
And it's only a good thing if you value referential transparency over ease of testing and encapsulation. Not everybody does (and personally, sometimes I do and sometimes I don't).
> it's only a good thing if you value referential transparency over ease of testing and encapsulation
I get the feeling that you're mixing up terms again, as you cannot have ease of testing or good encapsulation without referential transparency.