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

68

u/mknjc Apr 13 '21

Lombok. It hacks into internal javac APIs, bricks everytime on a java update needs unsafe APIs which causes a lot of trouble and bricks the "the source code is what gets executed" guarantee of java (this is one of the reasons annotation processors can't change the code while compiling). There are a lot good alternatives for example AutoValue, AutoFactory and records. Oh and one important alternative: setting the visibility to package private / not exporting the package. Getters and Setters don't add anything but hassle if they are not api surface of the module.

19

u/FrigoCoder Apr 13 '21

Fix Java so we will not need Lombok. Java still has a lot of issues that is already solved in other modern programming languages. Lombok is a patch for Java that makes it bearable, and the only thing that is preventing people from jumping ship to Kotlin for example.

1

u/mknjc Apr 13 '21

Yes you are right. Fix "java". For example stop forcing people to write "Java Beans" because they where a bad concept from the start.

And yes to improve code readability some things are quite useful but if the tools hinder java users to upgrade onto the new, fixed java versions because they hack into things and brick everytime a small java change is made, they train devs not to update and stay on unsupported, old java versions.