3 ms·
> dependency injection [is an] anti-pattern. > injection of dependencies should be done via an explicit method/constructor parameter The second sentence seems
by commandlinefan 7y ago
> dependency injection [is an] anti-pattern.
> injection of dependencies should be done via an explicit method/constructor parameter
The second sentence seems to invalidate the first (and I agree with the second but not the first). If you're injecting dependencies using language features, you're still doing dependency injection - and doing it a lot better than the useless Spring "framework".