2 ms·
What 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 differen
by CharlieDigital 2y ago
What 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.