Comment by mrkeen
2 days ago
The beautiful and essential technique of DI (dependency inversion) got namesquatted hard by DI (dependency injection).
Before, you used to write "loosely coupled" software by decoupling your business logic from your IO to keep it testable. You could take virtually anything worth testing, 'new' it in a unit test, and bob's your uncle.
Now you write "loosely coupled" software by keeping the coupling between components, but also couple them to a bunch of Spring dependencies too (check your imports!). Now you can't instantiate anything without Spring.
No comments yet
Contribute on Hacker News ↗