3 ms·
This is a common misconception about "coupling". Decoupling is making something truly independent, not making the dependency injectable. Making it injectable is
by spion 6y ago
This is a common misconception about "coupling". Decoupling is making something truly independent, not making the dependency injectable. Making it injectable is the last resort when you can't make it independent.
The real thing you should be thinking of is, look at those libraries and their documentation / READMEs (depending on library size, smaller actually preferred). Can I make my code modules more like that? Will the API boundaries I define make sense?