r/java • • Nov 27 '15

Why I hate Spring

http://samatkinson.com/why-i-hate-spring/
12 Upvotes

76 comments sorted by

View all comments

37

u/[deleted] Nov 27 '15

I stopped reading at XML. Spring hasn't pushed XML configuration for quite a long while (3.0) and some level of Java config has been available since 2.5ish. Spring is on 4.2 with 4.3 (final release) and 5.x coming out next year. Nothing like a bitchfest article from someone living in the past.

Might as well write an article complaining that Java 7 isn't "functional".

21

u/stormcrowsx Nov 27 '15

Annotations are just xml configuration with a new spin. You magically sprinkle them through your app and they do stuff. Its hard as hell to follow for new comers, its hard to track down later. They break at runtime instead of compile time.

3

u/vizzoor Nov 27 '15

While I agree you're not seeing the effects until runtime, you should absolutely have enough automated tests in your code to capture those breaks early on.

5

u/stormcrowsx Nov 27 '15

Yeah you should but it doesn't always work out that way. Most codebases I've seen are at best 80% covered or use so much mocking that some runtime errors slip by.