3 ms·
Constructor args are the simplest form of dependency injection :) And when I'm using a DI framework, the only injection point I'm happy with. But, having work
by EdwardDiego 5y ago
Constructor args are the simplest form of dependency injection :)
And when I'm using a DI framework, the only injection point I'm happy with.
But, having worked on a large codebase that used constructors with no DI framework, it makes adding a new dependency used in multiple bottom nodes of the graph very painful.