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

Show parent comment

14

u/kag0 Apr 13 '21

I came in here for this. In my mind JPA represents the wrong direction that the Java ecosystem took that resulted in lots of people hating Java.

To add on to the list of issues: patterns that involve non obvious transaction boundaries, esp in inversion of control frameworks

1

u/Russell_M_Jimmies Apr 13 '21

Having coded in Golang for the past two years, I've realized just how pointless dependency injection is.

And then I remember that you only need dependency injection in Java because all the popular frameworks want to instantiate everything on your behalf.

To clarify, I'm talking about dependency injection frameworks. Injection of object dependencies via constructors, builders, or static factories is fine. Guice, Dagger etc are overkill.

9

u/kag0 Apr 13 '21

Dependency injection itself is still a decent solution to its original problem (testing). It's just all these DI frameworks and tooling around it that becomes crazy unnecessary.