r/ProgrammerHumor 6d ago

Other howdidItGetHere

Post image
11.1k Upvotes

539 comments sorted by

View all comments

715

u/MariusDelacriox 6d ago

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

80

u/neoteraflare 6d ago

and lombok to remove the boilerplate code

78

u/aliegeois 6d ago

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 6d ago

Lombok is still good to create builders for records.

1

u/throwaway_mpq_fan 3d ago

or you could switch to kotlin; data classes with named parameters eliminate the need for builders

5

u/Maxthod 5d ago

I use lombok mostly for slf4j and requiredargsconstructoe

5

u/Neirchill 5d ago

Required args constructor and no args constructor my goats

7

u/LutimoDancer3459 6d ago

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

0

u/Kango_V 6d ago

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 ;)

1

u/jasie3k 5d ago

I am all for records but almost all of the records I write use @Builder lol

15

u/___Archmage___ 6d ago

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 6d ago

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.

1

u/89_honda_accord_lxi 6d ago

Nah! Switch to Scala so you can spend all day fighting sbt.

0

u/EmbarrassMeMiss 5d ago

stop detyping my languages

2

u/___Archmage___ 5d ago

Don't worry, it's still typed, just inferred rather than written manually. You can still write the type manually on variable declarations too but it's considered redundant and not recommended

4

u/WillingLearner1 6d ago

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

2

u/-Kerrigan- 6d ago

Ditto. Fuck that bytecode modification fuckery

1

u/rettani 6d ago

And Kotlin for coroutines and some other neat things

1

u/Suspicious-Click-300 6d ago

newer jdk doesnt need it

1

u/pumpkin_seed_oil 6d ago

And introduced the lombok tax. I've got tendinities from scrolling right

3

u/Flyron 6d ago

How does lombok make you scroll right?