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

76

u/vprise Apr 13 '21

App engine and pretty much anything by google such as using the Android API directly (which they kept shifting constantly), GWT etc. I work with a lot of their APIs (e.g. Maps) and they are just horrible at keeping compatibility or consistency. I'm shocked people still use developer oriented products from Google and Facebook. Hacker oriented companies just shift the standard overnight and expect everyone to align with them.

E.g. just the other day a guy posted this which pretty much demonstrates how awful it is to rely on Google...

32

u/agentoutlier Apr 13 '21

Yep...

Controversial one: Guava

Google does not care about modularity, dependencies or backwards compatibility.

What they did to Dagger is a travesty.

9

u/ryuzaki49 Apr 13 '21

What they did to Dagger is a travesty.

Would you care to expand? I've worked with dagger2 and it has its steep learning curve, but way better than what was available at the time.

8

u/agentoutlier Apr 13 '21

The dagger 2 compiler requires tons of dependencies.

The problem with APT dependencies that aren't shaded in an annotation processor library is that effectively clashes with whatever else is in your classpath. Anyone that writes an annotation processing library knows to do this. You need to shade the deps.

Effectively this means that you are required to use the same version of Guava as Dagger 2 even if your generated code doesn't use Guava.

I have complained to Google about this and... Bazel doesn't really support shading and they don't really care.

See they can't do it because they are using their own build system on an open source project they took over. The build system they are using is only to make their development easier and much harder for others to contribute... they don't give a shit.

There is other stuff that I could go into later but I don't have the time right now (sorry).

2

u/yawkat Apr 13 '21

I don't understand this problem. The dagger 2 runtime has no dependencies, except for javax.inject. The dagger 2 compiler does have the dependencies, but it is only necessary on your apt classpath, not your application classpath, so it should not clash? Or do you have other annotation processors that use guava?

1

u/agentoutlier Apr 13 '21 edited Apr 14 '21

The annotation classpath includes your compile time classpath. I wrote this wrong. It can be separated most of the time. If it didn’t it would not be able to compile.

And besides... yes google ironically makes another library call Auto (like immutables) that again doesn’t shade Guava that needs a different Guava at times.

→ More replies (2)