3 ms·
This always baffled me -- when Guava came on the scene, and when Spring also adopted annotations... The whole original point of dependency injection was to dec
by cmrdporcupine 6y ago
This always baffled me -- when Guava came on the scene, and when Spring also adopted annotations...
The whole original point of dependency injection was to decouple dependency management from the code, to make it easier to test, and easier to reason about and analyze.
DI via annotations goes ahead and sticks them right back in there. And now we have, like you say, magic code that is difficult to reasona bout.
XML sucked, but annotations sucked more.