How I Learned to Stop Worrying and Love the Service Locator

added by DotNetKicks
11/28/2018 2:41:54 PM

1 Kicks, 2629 Views

Service locators are an anti-pattern. They are what we used before we learned about dependency injection. If you already know what a service locator is and why it's harmful (it's unethical to explain one without the other) then skip past this first heading.