News for hackers. Stuff that matters.
Re:Dependency injection in Go with Uber-go/fx by tasubotadas on Sunday February 27, 2022 @09:01AM (#30488484)
>What does dependency injection give you that a simple combination of Singletons, Constructors, and Factories doesn't?

You don't need to create a "simple combination" of Singletons, Constructors, and Factories.

Re:Dependency injection in Go with Uber-go/fx by BobbyJo on Sunday February 27, 2022 @01:28PM (#30491025)
Don't you? In Java I still had to create the Singleton/Constructor/Factory etc. and register it with the framework as a provider of that type.