3 ms·
Everything is wired up using Dependency Injection. So you just state your claims and are given appropriate objects that may be created by some third party facto
by awild 6y ago
Everything is wired up using Dependency Injection. So you just state your claims and are given appropriate objects that may be created by some third party factory factory. It's really neat until it isnt.
- superbaconman 6y agoIt's there an unspoken rule about how much dependency injection is too much dependency injection? Like I can see how it could get bad, but how do you know when you've gone too far?
- awild 6y agoProbably as soon as you don't know why an object appears in your tree. I'm not at all an expert on Di as the only project I worked on that used it a lot, I was also responsible for refactoring it such that spring di was only optional by annotated constructors, because spring startup is atrocious and we wanted to use part of the application in lambda. I've not used it since because the project I inherited suffered extremely from nih syndrome.