News for hackers. Stuff that matters.
Re:Dependency injection in Go with Uber-go/fx by cle on Sunday February 27, 2022 @09:09AM (#30488552)
There's nothing special about DI frameworks there. If a client library has some sane defaults preferred by the devs, then call a constructor that sets the defaults for you. You don't need DI for that.

IME at tech megacorps, DI just obfuscates and distracts, shifting the focus onto understanding the accidental complexity it introduces instead of dealing with the intrinsic complexity of the dependency relationships.

There are no comments on this comment yet.