4 ms·
What are your main pain points with Spring?
by joelbluminator 6y ago
What are your main pain points with Spring?
- jimbokun 6y agoAnnotation oriented programming. Having the code execution paths radically change by adding an annotation to a method or a class makes it very difficult to reason about what it will do when deployed. If that annotation you found through Google does what you want and expect, that's great. But if it doesn't, or fails in unexpected ways, debugging it can be a nightmare.
- joelbluminator 6y agoIts interesting that a java framework is so "magical", feels like it goes against the java mindset I know.
- jimbokun 6y agoYes, that's what makes it so terrible. All of the "action at a distance" complexity of Ruby meta-programming, with none of the concise and easy to read code!
- cmrdporcupine 6y agoThis 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.