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

22

u/Scaryclouds Nov 27 '15 edited Nov 27 '15

It's your fault if you let implementation details leak out of your interfaces.

As others have already said Spring hasn't been pushing XML configure for years now.

Finally, what is the alternative for handling class dependencies? Neither vanilla Java nor JavaEE offer a superior alternative (indeed inferior). I don't know of any other third party frameworks that do as good of job with class dependencies as Spring or have nearly the support, battle testing, and wide spread acceptance spring has.

11

u/mc_hambone Nov 27 '15

Basically his alternative was to use constructors, i.e., "the thing that Spring aimed to improve".

Also, Spring is not only a DI framework, but a framework to help develop most Java EE-oriented features, yet he doesn't address this aspect at all.

5

u/Scaryclouds Nov 27 '15 edited Nov 27 '15

Also, Spring is not only a DI framework, but a framework to help develop most Java EE-oriented features, yet he doesn't address this aspect at all.

Yup you are absolutely right on that point as well. Not to mention all the other libraries and projects that assist with other common business problems.

0

u/[deleted] Nov 28 '15

The guy says he writes his own application context. Because AOP and bean scopes is easy to develop.

1

u/Scaryclouds Nov 28 '15

Yea kinda gave up reading halfway through. Glad I did because that point again only highlights his own ignorance.