News for hackers. Stuff that matters.
Re:Astonishing Performance of .NET 5 by didibus on Friday November 13, 2020 @01:15AM (#25079471)
> 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.

Re:Astonishing Performance of .NET 5 by shireboy on Saturday November 14, 2020 @06:14AM (#25091565)
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.