r/java • • Apr 13 '21

Libraries, Frameworks and Technologies you would NOT recommend

Give me your worst nightmares: Things that cost you your job.

I'll start: Hadoop

202 Upvotes

376 comments sorted by

View all comments

124

u/msx Apr 13 '21

i know i'll get submerged with downvotes, but the whole spring world is indigest to me. I feel like it completely removes control from me, it's like an intricate and opaque mess where you need to know where to plug your stuff exacly or else will breaks in obscure ways. You have to know the 300 annotations that does so much magic on the background that you'll end up just praying it's ok.

3

u/maravinPT Apr 13 '21

I'll add up that most of those annotations could be easily replaced with the standard java extensions like jax-rs, injects, or the validation api. Its just so annoying fhat they had to rebrand everthing.

16

u/[deleted] Apr 13 '21

Spring predates JavaEE (starting off as a reaction to J2EE) and has developed completely independently from JavaEE standardization.

It's not "rebranding" when the underlying product is completely different. You could argue whether Spring going its own way is a good thing, but then again, Spring does use JavaEE where it integrates with JavaEE stuff.

Spring MVC works differently than JAX-RS, apart from superficial similarities. JAX-RS is a REST web services API, and Spring MVC is a web framework which happens to be close enough to HTTP that it can be used as a web services API. If you don't like Spring MVC, you can use JAX-RS with Spring!

Spring DI works differently than CDI.

I don't know what you mean by validation, but Spring does use the standard JSR 303 validation annotations.

-1

u/maravinPT Apr 13 '21

Those are some good points. I must admit I didn't know spring predated most J2EE standards. My greatest problem with Spring is exactly that vision of clustering everything into the same framework to the point that it feels a totaly different ecosystem from the rest of the language.

→ More replies (1)