Re:Dependency injection in Go with Uber-go/fx
by staticassertion on Monday February 28, 2022 @10:07AM
(#30500592)
All object creation is in one place - main. So no, I should never have to go deep anywhere.
[ Parent
| on HN ]
Re:Dependency injection in Go with Uber-go/fx
by lucasyvas on Monday February 28, 2022 @10:49AM
(#30501159)
This is my take as well. Plus, if you are plumbing something that deep, the odds that your design is total shit is approaching 100%.
Manual DI reveals problems like this way earlier.
DI frameworks, IMO, are some of the most useless around. Solution seeking a problem.