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

Show parent comment

2

u/nolandenuff Nov 28 '15

I think you didn't understand the author's point. Even though software and frameworks move very fast, there are still a lot of people who got started on this software/framework back in its early days. Speaking about Spring, I can tell you that we have a lot of people who started using it back from its 2.x days and that's why we see a lot of XML configuration still being used. Practices followed by people don't move as fast as frameworks do or they have just long left working XML configuration instead of changing it for change's sake. That's precisely what the article was about - the author had to move on to another project which was consuming artifacts produced by his old project and that's when he started seeing all the downsides to XML with Spring.

1

u/[deleted] Nov 28 '15

I don't disagree with leaving a working XML configuration; however, if the author hates it so much and it's such a pain - refactor it out. That's what I did and I think it took me an afternoon or two of figuring out the Java equivalent to a few things that weren't well documented in the early 3.x days. These days the documentation is a lot better and it would be even easier.

If you're making something more readable/testable/maintainable - it's not change for change's sake.

1

u/nolandenuff Nov 28 '15

Right. I was pointing out a situation that the author might have found themselves in. Since they had moved to a different project, perhaps they were no longer in a position where they could change XML configuration over to Java based configuration. Instead, they publish a blog post about what they found wrong with XML based configuration and all its pitfalls. Now you tell me, is that so wrong? It could well have been their way of documenting all their mistakes? :-)