It looks a bit like a service locator?

Anyway, my preference is towards manual, constructor-based DI, without any libraries of frameworks. It works great in small to mid-sized projects, which are most common nowadays (anything bigger is split up into separate services)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adam Warski

Software engineer, Functional Programming and Scala enthusiast, SoftwareMill co-founder