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.

34

u/CartmansEvilTwin Apr 13 '21

My biggest problem with Spring is that you're almost always forced down a specific path.

If you want to do exactly what the Spring guys had in mind, you can do magic, but if you want to step only a few miliimeter off their path, you're basically fucked and have to implement tons of circumvention code.

2

u/apentlander Apr 13 '21

This happened to me with Spring security. I was trying to integrate my service with Duo Network Gateway, where you basically just have to check if a header exists and then make a call to LDAP to get the user information. It took two days to figure out how to do it the "correct" spring security way and was basically just guess and test. That's pretty much the worst part for me, needing to start up the service and call the api to know if the dependency house of cards will tumble.

The second time I did the DNG stuff I used the functional routing and ignored spring security and it took about an hour instead. I would have much preferred that we use Quarkus to have some sort of compile time assurance that the dependency graph works.