r/linuxquestions • • Jun 12 '20

Resolved Why does everyone hate Java applications?

I see it generally everywhere I go as a Linux user: almost everyone has some kind of problem with Java applications. I understand Java as a development platform has some rather infuriating holes regarding its deployment methods, and the most common issue I've seen are memory leaks and just how memory hungry the applications can be by themselves.

Is it a concept of purity? Or is is just because of some other reason that seems to escape me? I use some Java applications almost daily without problems. So why the grudge?

Opinions, rather than absolute answers, are expected.

Resolved -- Technically, there have been several wonderful and informative answers here on this post. Some answer the question better than others. However, not one singular answer is fitting enough to answer this question, so I thank everyone who took the time out of their day to enlighten me about Java and its rather unfortunate history. Thanks again!

128 Upvotes

137 comments sorted by

View all comments

28

u/borgy_t Jun 12 '20

I've been a java developer for 14 years. Java is good for building server/web applications, with your preferred front end framework. I agree for desktop application development, it leaves much to be desired, JavaFX is just too clunky to work with. I haven't used Swing in years so I have no opinion about that.

The community support, amount of libraries and tooling built around it is top notch.

Functional programming started to be supported better starting Java 8 which can help reduce the vebosity. Personally though, functional programming is not my cup of tea.

There was backlash against java applets because they were riddled with security holes, and thus java's reputation suffered a big hit.

5

u/[deleted] Jun 12 '20

Functional programming started to be supported better starting Java 8 which can help reduce the vebosity. Personally though, functional programming is not my cup of tea.

Functional programming in Java(specially in Java 8) is a joke. Poorly made make up around objects, java has no freestanding functions.

God I hate java

2

u/TryingT0Wr1t3 Jun 12 '20

Also nowadays we like webassembly even though it's used for malicious intent. So Java applets were shitty but the thing we have now is still shitty but we are ok for convenience.

1

u/gmes78 Jun 12 '20

WebAssembly doesn't do anything JavaScript can't. It just does some things a lot better and faster.

So that's a stupid comparison. Especially comparing it against Flash of all things.

1

u/TryingT0Wr1t3 Jun 13 '20

https://webassembly.org/docs/security/

Google Attack Surface Webassembly.

You are right that a lot of what can be done on it can be done using JS but it has new bugs too and it's a new thing to explore for security. Also people are lazy to use JS.