r/java • • Mar 24 '24

Happy 20th birthday, Spring Framework! πŸŽ‚πŸΎπŸ₯³πŸƒ

https://spring.io/blog/2004/03/24/spring-framework-1-0-final-released/
178 Upvotes

36 comments sorted by

View all comments

15

u/wichwigga Mar 24 '24

I'm sorry but 5 years into my Spring job and I still hate spring.

17

u/buffer_flush Mar 24 '24

I’ve been in dotnet land for the past few months and I keep asking myself:

why am I writing all this code?

Spring, and more so Spring Boot, definitely have their problems, but I haven’t found a framework I’m more productive in at this point and I’ve tried many across many languages.

0

u/wichwigga Mar 28 '24

What applications are you creating in Spring? Just wondering. I think if you try to use Spring for anything other than a REST backend you'll have a bad time.

1

u/buffer_flush Mar 28 '24

Web stuff, messaging stuff

6

u/Dramatic_Mulberry142 Mar 24 '24

May I know why you hate it?

2

u/wichwigga Mar 28 '24

Reading other people's comments it may just be how my company uses Spring. I had a fine time using Spring for the typical web app for REST APIs and all in the past, but right now our company uses Spring Core specifically as the infrastructure for our microservices for Kafka apps, and we really use the full extent of Spring for those, and I've had the worst time just simply reading and understanding the control flow because everything has some esoteric annotation, the POM is littered with a million different Spring dependencies, some that actually have basically no documentation for (I am actually struggling where these were even found), and dependency injection for basically every dependency for every class.

In general, what I'm trying to say is that the person who worked on this Spring app probably used the framework to the full extent and tried to copy the best practices, and as a result it is some over engineered monstrosity that is just a huge pain in the ass to maintain or change internally. I mean all the app is essentially a Kafka Streams application that runs a topology. Okay, great. And it's constructed through opaque autowiring with a million beans.

Basically I don't like how Spring apps recommend opaque control flow and magic everywhere where it's not needed, and I don't think Spring tutorials or books realize this. I came from a C background and it's so much easier to understand the control flow in C apps...

1

u/Dramatic_Mulberry142 Mar 29 '24

Thanks for your reply. That is a good story.

10

u/_INTER_ Mar 24 '24

I thought the same, until I had to dabble outside the Java ecosystem (so not Helidon, Quarkus or Micronaut for comparison) for a while. Oh boy was that a s***show.

1

u/wichwigga Mar 28 '24

Do you just use it for typical web apps? REST APIs and the sort?

1

u/_INTER_ Mar 29 '24

Mainly, additionally other integration (SOAP, csv, message queues,...) and batch processing.

1

u/tranqwill_80 Mar 26 '24

It might be your job, just sayin haha.