Jan 25, 2023
Dependencies have lifecycles. Some are singletons, and some should be unique each and every time they're instantiated.
My biggest issue with the technique wasn't that it made everything a singleton (although it did), but that it also creates every single instance at launch, regardless of whether or not its actually going to be used.
Glad you like the articles.