4 ms·
Ugh that sounds like the Spring effect. I really like Java but Spring and IoC/DI makes it very complicated.
by rr808 2y ago
Ugh that sounds like the Spring effect. I really like Java but Spring and IoC/DI makes it very complicated.
- CharlieDigital 2y agoWhat in particular do you find difficult about DI? My experience is that it's "fire and forget"; never give it much of a thought at all and isn't much different from: // some-module.ts export const someModule = () => { } // other-module.ts import { someModule } from "some-module" Except that DI allows "importing" at different levels.
- rr808 2y agoOne of the reasons I use Java is for type safety. What's the point when your app compiles OK but then doesn't start because Spring can't satisfy all the dependencies or choose which one. I spend hours trying to get the config right. You end up programming via config.