News for hackers. Stuff that matters.
Re:Dependency injection is dynamic scoping in disguise by gwbas1c on Thursday October 31, 2019 @02:48PM (#21412255)
> Given this drawback, dependency injection still seems like the better trade-off to me, despite of its higher amount of required boilerplate. Perhaps it is possible to bring some of the explicitness to the dynamic scoping approach, though.

There's a difference between a program that's industrial-strength versus a toy project.

Any program that's industrial strength will require effort in strengthening, irregardless of the pattern chosen.

(Honestly, I really wish dependency injection was a language feature.)

Re:Dependency injection is dynamic scoping in disguise by eru on Friday November 01, 2019 @06:18AM (#21417419)
Effort in strengthening being required at all is independent of pattern chosen.

Amount of effort very much depends.