|
|
|
|
|
by _pmf_
4733 days ago
|
|
> The direct opposite of Dependency Injection is the Service Locator pattern. You're right in spirit, but the direct opposite of dependency injection is obviously direct dependency construction, not service location. Service location is one step up from direct dependency construction, and can be enough for a lot of cases, but as you say, it's not dependency injection. |
|
Fair call!