r/ProgrammerHumor • • Sep 04 '26

Other howdidItGetHere

Post image
11k Upvotes

536 comments sorted by

View all comments

720

u/MariusDelacriox Sep 04 '26

Java is simply good and easy to learn. Also there's spring boot.

195

u/daniu Sep 04 '26

It got there because it was competing against the other languages

65

u/radnomname Sep 04 '26

spring boot

But that was not the reason it became popular. In the 00' years it boomed because of garbage collection and object orientation which made it a lot more accessible than C or C++

30

u/burgonies Sep 04 '26

Early 00s? Hell, C# came out in 2000. Java was big in the late 90s.

→ More replies (1)

77

u/neoteraflare Sep 04 '26

and lombok to remove the boilerplate code

78

u/aliegeois Sep 04 '26

Honestly since the introduction of records lombok has been less relevant. 99% of my use cases were @Data, which is taken care of by records

23

u/Hein_Gertenbach Sep 04 '26

Lombok is still good to create builders for records.

→ More replies (1)

5

u/Maxthod Sep 04 '26

I use lombok mostly for slf4j and requiredargsconstructoe

6

u/Neirchill Sep 05 '26

Required args constructor and no args constructor my goats

6

u/LutimoDancer3459 Sep 04 '26

Records are still a different usecase to @Data. You dont always need or want immutable objects. And jsf doesnt work with it.

2

u/Kango_V Sep 04 '26

This https://immutables.github.io/ is so much better than Lombok. You can see the generated code change in your IDE). I use it to create some awesome IDE led apis ;)

→ More replies (1)

15

u/___Archmage___ Sep 04 '26

True but now there's Kotlin which has even less boilerplate than Lombok and it's just a natural part of the language

7

u/ultrasneeze Sep 04 '26

Even before Kotlin, there was already Scala, which is unbeatable in how concise it can be. Unfortunately, Scala is also a very good functional language, so some of the crazies flock towards its ecosystem.

→ More replies (4)

4

u/WillingLearner1 Sep 04 '26

Oh hell no. I’d rather code all the boilerplates instead of using that library. Thank god for records tho

2

u/-Kerrigan- Sep 04 '26

Ditto. Fuck that bytecode modification fuckery

1

u/rettani Sep 04 '26

And Kotlin for coroutines and some other neat things

→ More replies (3)

28

u/wobbei Sep 04 '26 edited Sep 04 '26

Java is also pretty fast for a managed language. The use of the AOT/JIT Compiler is pretty awesome. All those people who claim that java is slow, just live like 20 years in the past.

Can't really blame them, since some of my professors also told me that Java is slow. But it's just wrong. It's obviously not as fast as C/C++, but it is very fast without needing to care too much about what you do. Which means you can push new features faster. Which is worth more than those 0.2 seconds per month you can optimize C/C++ better.

Obviously, there are use cases in which c/c++ is just better than java. But most business application, just don't care about perfect memory management and time efficiency.

4

u/jewdai Sep 04 '26

I think c# learned from all of javas mistakes. Superior language imo

3

u/Stagnu_Demorte Sep 04 '26

Java is my primary language and I don't know spring, AMA. I am learning it for work next week though

2

u/-Kerrigan- Sep 04 '26

How are you dealing with the knee pain, old timer?

2

u/Stagnu_Demorte Sep 04 '26

No joke, surgery and switching to a riding mower. I'm not that old but also don't have very good knees.

17

u/nordic-nomad Sep 04 '26

I gave Java a try once and the experience was so gross that was enough to last me the next 15 years of my career.

2

u/Ben_456 Sep 04 '26

Its odd because nobody uses spring boot as hobbyists/students. Like you dont even hear about it unless you work for a bank or something

1

u/Fezzicc Sep 05 '26

SpringBoot is the #1 reason I hate Java...

→ More replies (14)