Re:You probably don't need a dependency injection framework
by akoboldfrying on Sunday May 25, 2025 @10:01PM
(#44093253)
I third "dependency parameters". It concisely describes what the actual thing is, and isn't intimidating.
And yes, even though some languages/frameworks allow deps to be "passed in" via mechanisms that aren't technically parameters (like member variables that are just somehow magically initialised due to annotations), doing that only obfuscates control flow and should be avoided IMHO.
And yes, even though some languages/frameworks allow deps to be "passed in" via mechanisms that aren't technically parameters (like member variables that are just somehow magically initialised due to annotations), doing that only obfuscates control flow and should be avoided IMHO.