4 ms·
"Avoid using language extensions and libraries that do not play well with your IDE. The impact they will have on your productivity will far outweigh the small b
by jimbokun 11y ago
"Avoid using language extensions and libraries that do not play well with your IDE. The impact they will have on your productivity will far outweigh the small benefit of easier configuration or saving a few keystrokes with more terse syntax."
This is the main reason to avoid Spring.
Having so much critical code in XML and properties configuration files, annotations, and magical interfaces that somehow sprout implementations with no source code, make it impossible to debug using the normal techniques of Java development.
"Show me all of the implementations of this interface method"
"Show me where this object is instantiated"
"Show me the code being invoked when I call this method"
In my day to day work, Spring's only purpose often seems to be hiding the code that will actually execute when my program runs.
- msluyter 11y agoInteresting. Are you familiar with IntelliJ? My experience has been that its Spring integration provides most of what you're asking for.
- jimbokun 11y agoIntelliJ is amazing, and the only way I can function at all with our code base. But there are definitely still times when Spring manages to elude even IntelliJ. How anyone thought "magically appearing interface implementations with no code" was a good idea still baffles me.
- lr4444lr 11y agoIntellij IDEA is remarkably Spring-aware if you set it up properly. Static checks across schema-specified XML and Java is tight. That said, I couldn't imagine working with Spring if I weren't using IDEA.
- JustSomeNobody 11y agoBecause it is much better to let misspellings get caught during run time than compile time. /s Same with a lot of the DI frameworks that were so popular for a while. New guy doesn't wire something up correctly, checks it in and everyone spends the next 3 hours debugging a rabbit hole. (OK, slight exaggeration.)
- retbull 11y agoI spent 3 weeks on a spring rabbit hole as a new dev. Not exactly the easiest thing to get a hang of.