News for hackers. Stuff that matters.
Re:Dependency injection is dynamic scoping in disguise by glun on Thursday October 31, 2019 @02:05PM (#21411783)
This also isn't thread safe, but that's not a problem if you don't run parallel tests in the same process. Using the same stateless test doubles in all tests also solves the problem. I often find myself wanting stateful test doubles though.

There are no comments on this comment yet.