News for hackers. Stuff that matters.
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.
Re:What's New in F# 9 by rr808 on Tuesday November 12, 2024 @09:45PM (#42122399)
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.