News for hackers. Stuff that matters.
Re:Compile-Time DI vs. Run-Time DI by dvlsg on Tuesday April 30, 2019 @12:46PM (#19789570)
I've found containers are helpful when you want to replace one or two specific pieces in the middle of the dependency tree for testing - let's say a mock database, for example.

On the other hand, I've also found myself avoiding writing code which requires deep mocks like that in order to test. Functional core, imperative shell helps with that.

There are no comments on this comment yet.