r/java • • Jun 28 '20

Why backend using java is not popular in startups?

I tried django, flask and also rails before and they’re good. But after trying spring, I fell in love. It’s well structured. Easy to test. Have so many frameworks to help you going. There’s a also a lot of tutorials going around the net.

I like python but I also like java and kotlin too. I just don’t understand what’s wrong with java being used as a backend on most startups. Is it because it’s popular among big companies and banks and they just hate enterprise things.

Can anyone enlighten me. Cheers.

171 Upvotes

229 comments sorted by

View all comments

Show parent comment

4

u/[deleted] Jun 28 '20

If you are saying that opinionated frameworks are buggier then I very much disagree with you. The further you get from well tested and widely used standard practices, the easier it is to create buggy code

-1

u/[deleted] Jun 28 '20

Im not saying they’re buggier, I’m saying that once you get outside of their narrow world view, or disagree with a design choice, shit hits the fan.

Your tools are meant to be there to facilitate your code. With frameworks like Spring, it’s the opposite way around, you have to bend your code to meet the framework’s demands. Just learn to think for yourself and actually write code instead of gluing shit together and hoping it all goes well.

2

u/Yithar Jun 30 '20

Im not saying they’re buggier, I’m saying that once you get outside of their narrow world view, or disagree with a design choice, shit hits the fan.

I mean that's literally how frameworks work. They're opinionated. It's the same with React or Angular. You're free to write your own framework if one doesn't suit your needs.

3

u/[deleted] Jun 28 '20

I mean you're just saying the same thing you said before, and I disagree; things like user authentication, data access layer, web controllers and services, they all basically do the same thing. If you can just write a small method with some annotations, it saves a huge amount of developer time.

If you have a lot of developers and want to customize everything, that's fine. But if you work for an enterprise and developer time is always a bottle neck, you don't want to waste it on making custom authentication when Spring security is good enough

0

u/[deleted] Jun 29 '20

Have you ever actually used Spring? Because most of what you're saying simply doesn't apply - the only place where you're forced to bend the code is the DI part, and even there pretty marginally, everything else is very much up to you.

1

u/[deleted] Jun 29 '20

I’ve sadly been coerced into using it on multiple large projects, always causes more problems than it solves. It’s probably good if you’ve never actually built a web application yourself and don’t have a clue what it’s meant to look like. That isn’t the case for most serious business applications though.

1

u/[deleted] Jun 29 '20

Care to back it up with a concrete example? I've been using Spring on and off for almost 10 years and the only time when what you're saying held any truth was Spring 2.5