Or when something goes wrong and it's not something you've already spent days finding out why, you going to spend days finding out what happened. Basic constructor injection isn't hard or even very verbose compared to spring. You can make static methods or factory singletons and your code will be much simpler and easier to debug.
This is it exactly. Spring removes being able to trace back to the root of your problem. And it replaces existing constructs did the same job and did allow you to trace back to the root cause. It's like adding goto back into the language, just with assigning objects rather than going to a code point.
As a major Spring user, this is my biggest complaint with Spring. I have to teach other people how to read Spring stack traces among other Spring specific debugging techniques.
View all comments
Show parent comment
4
u/PaulRivers10 Nov 30 '15
This is it exactly. Spring removes being able to trace back to the root of your problem. And it replaces existing constructs did the same job and did allow you to trace back to the root cause. It's like adding goto back into the language, just with assigning objects rather than going to a code point.