News for hackers. Stuff that matters.
Re:You probably don't need a dependency injection framework by layer8 on Sunday May 25, 2025 @05:53PM (#44091539)
This is the only reason why DI frameworks exist. However, this issue can be largely avoided by working with configuration objects (parameter objects [0]) from the start, that get passed around. Then you only need to apply the change in a small number of parameter-object classes, if not just a single one.

[0] https://wiki.c2.com/?ParameterObject

Re:You probably don't need a dependency injection framework by jcelerier on Monday May 26, 2025 @09:14AM (#44097143)
Eh, having built a whole codebase around these configuration objects I really regret not going for more traditional DI IoC container. It's thousands over thousands of additional parameters passed all over the place when creating objects just for the sake of saving five minutes of explanation to newcomers.