3 ms·
> That multiple usages of the same concrete types requires changes on multiple places Write a util function then, or like some like to call it, one of the many
by didibus 6y ago
> That multiple usages of the same concrete types requires changes on multiple places
Write a util function then, or like some like to call it, one of the many Factory pattern.
- shireboy 6y agoSo then you’re writing your own one-off DI of sorts. And you have more code to write than if you’d just used DI.