Y
Hacker News
new
|
ask
|
show
|
jobs
by
didibus
2051 days 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.
1 comments
shireboy
2050 days ago
So 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.
link