Re:What's New in F# 9
by rr808 on Sunday November 10, 2024 @09:18PM
(#42104113)
Ugh that sounds like the Spring effect. I really like Java but Spring and IoC/DI makes it very complicated.
[ Parent
| on HN ]
Re:What's New in F# 9
by CharlieDigital on Monday November 11, 2024 @09:41AM
(#42107464)
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.One 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.