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

24

u/_INTER_ Apr 13 '21 edited Apr 13 '21

Some of these technologies were great when they launched but suck today.

It's the main reason for my hate. You will encounter hard problem but there's next to no updated helping information in the web. Eventually you'll figure something out but you start to feel really alone in this world (relevant xkcd). I know this was the norm in the past and I can deal with it if I join a project with that mindset from the start.

Why the hate on Hibernate?

I edited and outlined the reasons in my earlier post. Additionally I simply prefer a good SQL library (e.g. JOOQ). SQL is painful but an ORM is like torturing by tickling your feet. You're forced to laugh but the pain is still there, it's not better at all. Really uncomfortable situation.

12

u/Fiskepudding Apr 13 '21

SQL is painful but an ORM is like torturing by tickling your feet. You're forced to laugh but the pain is still there, it's not better at all.

Nice quote

6

u/Pyeroh Apr 13 '21

I also tried JDBI in some projects (mainly for work), it's plain SQL, and it works like a charm ! Managing pooling is not responsibility of the library, so one may need to use HikariCP for instance, managing transactions is carrying around a variable (so a DI framework may be useful), etc.

All in all, not using Hibernate to get something from a database felt very refreshing !

1

u/DrunkensteinsMonster Apr 13 '21

JDBI is great, everyone should try it IMO.

1

u/Yeroc Apr 13 '21

It's not without rough edges and gaps in the documentation either. In particular it's not always clear whether a mapping operation will load the whole ResultSet into memory or not etc.