4 ms·
That one stuck out to me as well, but for a different reason. I think the idea that "explicit is better than implicit" is a good idea for more than simply "mag
by mreiland 11y ago
That one stuck out to me as well, but for a different reason.
I think the idea that "explicit is better than implicit" is a good idea for more than simply "magic numbers and strings".
I much prefer seeing the code in front of me than having to jump through multiple functions across several source files + tracking down the configuration values I'm looking for because someone decided to use DI.
I'm not saying DI is a bad practice, but unless you really need it, prefer explicit dependencies.
And on and on with just about everything you do, if all things are equal, prefer explicit over implicit.