r/linuxquestions • u/Gamer115x • 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!
19
u/Magick93 Jun 12 '20
I dont hate Java applications.
0
u/Gamer115x Jun 12 '20 edited Jun 12 '20
Cool. But then there's the majority. There seems to be a consensus that dictates there are reasons to stay away from Java applications, and I'm just curious as to why.
Edit - reworded something that sounded a little pre-conceived.
14
u/Magick93 Jun 12 '20
Red Hat is one the largest supporters, contributors and developers of Linux - and Java. Ive never heard of any consensus against Java, quiet the opposite.
5
Jun 12 '20
The first for Java is definitely Oracle, and the second is Google (non-native Android apps).
11
u/Magick93 Jun 12 '20
Have a look at https://www.reddit.com/r/opensource/comments/h0zjrj/trillions_and_trillions_served_documentary/
Most Apache projects are written in Java.
Either thousands of devs are self loathing, or your assumptions about Java are wrong.
0
u/Gamer115x Jun 12 '20
Either thousands of devs are self loathing, or your assumptions about Java are wrong.
It must be that there are thousands of devs "self loathing", since I think that most of the Java applications I've used are fairly well-done. I have nothing against Java, and even commend the devs that can code efficiently in it. I just see on the occasional reddit comment or forum post that someone has something negative about Java.
2
Jun 12 '20
Yeah,self-loathing. I normally do not install Java on my personal systems. Then it was required for Java Minecraft and then unifi software controller gui is java client-server i think. So now its part of my golden image.
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
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.
21
u/MorallyDeplorable Jun 12 '20
As a programmer/enthusiast I love Java. It's flexible, you can twist it into knots, the entire VM is open-source and you can override large amounts of built-in behavior, such as how class loaders work.
As someone who has to worry about security, that giant footprint is impossible to secure and there's no way I want that running on anything the public can touch.
As an end-user Java is generally way more clunky than other tools, and the GUIs in it almost always fail to follow basic conventions in some way. They're never broken, but they do clash with really any other environment you may be using.
7
u/aoeudhtns Jun 12 '20
that giant footprint is impossible to secure
You'll be happy to hear that Java 9 introduced a module system so you can ship per-application JVMs that have "just enough" to run the target software.
Knowing the Java community, about 15% of projects will be using this feature by the start of 2030.
1
u/InterestedListener Jun 12 '20
Hey what do you think you're doing bringing balanced opinions and comprehensive perspectives to a reddit software discussion /s
JK I really enjoy Java because I can do so much with it and I hadn't considered how my opinion changes depending on my coder/security/user role. Thanks for your comment
10
u/silverweaver Jun 12 '20
I'm a java dev, but still get the impression of "holy f*ck, this app is written in Java for sure" for some of, "oldschool" UIs. But if there are functional, well why not. Squirell helped a lot before Intellij Ultimate license.
And as most of devs in this thread stated, for server side it's great.
10
u/qqqhhh Jun 12 '20 edited Jun 12 '20
I am programming a java backend - java is fine for backend apps but the desktop app experience is and was terrible.
- It is about the past experience with desktop java applications including applets since around 2000's. The runtime was huge for the time then, today it is normal compared to other enviroments like .Net . Today it is much much better, but the bad experiences still resonate.
- Startup times of the JVM were huge in the past when most of today experienced users were learning
- in the past the overhead of the JVM could be surely felt in the responsiveness of desktop apps. Today it is not perceivable thanks to many advances in JVM performance and hardware speed.
- You have to install the JRE, that is an unfair disadvantage because .Net is already present in Windows, and if you had to install .Net every time on a new PC it would feel the same. Today the 200mb runtime is negligible. In the 2000's it was HUGE. Today just the GPU drivers take a DVD(4GB) to store. Simply said the native .Net enviroment has many unfair advantages on Windows thanks to M$.
- There was a time period of booming internet where Java was used as an attack vector because of many bugs in applet enviroment or JRE, the creators of the JRE had to finally do a proper updater. That made a impression for many years that Java is insecure.
2
u/sbhandari Jun 12 '20
For enterprise developer, EJB was pain and it frustrated lots of developer until EJB 3.0 was released
0
u/Nemoder Jun 12 '20
So much this. It has a really bumpy history and not just on windows but Linux runtimes had a lot of problems over the years with fonts and sound systems. Even today many of the java applications I run don't play well with me switching workspaces and will just freeze.
16
u/henry_kr Jun 12 '20
From a Sysadmin point of view, I'm not keen on Java because:
Services are really slow to start up and stop.
They use a lot of resources, memory in particular.
They reinvent the wheel with logging, and don't use standard system provided logging.
Now this is all from my personal experience, and it could be that the particular programs that were running on systems I was responsible for were badly written, but I see the same problems with different Java programs time and time again.
5
u/Delta-9- Jun 12 '20
They reinvent the wheel with logging, and don't use standard system provided logging.
Holy fuck, this. I spent a week trying to get Tomcat to play nicely with Logrotate and finally gave up. For this reason alone, fuck Java and the NIC it rode in on.
1
u/gehzumteufel Jun 12 '20
Tomcat plays fine with logrotate. The key is to truncate the file instead of rotating the actual file. If you rotate the file, you just lose the logs because it attempts to still write to that deleted file.
1
u/vacri Jun 13 '20
It was a different java app, not Tomcat, but I had a problem with truncate-style logrotation in that the application would simply seek to the location in the file where the log 'should' be and write it there. This meant if I truncated a 10MB logfile, the next logline would be written after seeking 10MB into the file... filling it up with 10MB of zeroes...
1
1
u/henry_kr Jun 13 '20
I also forgot to mention that the logs themselves have never been very useful to me. When I've been called out at 3am (thankfully that was in an old job and I don't do that any more) I don't want to read pages and pages of stacktraces, I want to see what it's failing to connect to etc etc.
2
u/vacri Jun 13 '20
In addition to the logging, the config annoys me. Most other apps have "a config file" and maybe "a conf dir of snippets", all in one location. "big java apps" are a pain in the neck to troubleshoot regarding config - their launchers go through so many different scripts, picking up detritus each time, with config being added here, there, and everywhere. And then it all gets added as opts on the actual launch commandline anyway.
1
u/henry_kr Jun 13 '20
Yes, how could I forget about this! Don't forget setting important stuff in the environment too! You can't just take a working config file from one box and put it on another and expect it to work, even though that approach is pretty much an industry standard for *nix software.
28
u/heaxyh Jun 12 '20 edited Jun 12 '20
From a programmer perspective: I personally ok with java. But for sure it isn’t my preferred language. Java lacks on modern features compared c#. To write applications it felt really verbosely. There are language out there, that require less code and are easier to maintaining.
11
u/VegetableMonthToGo Jun 12 '20
That was once, but later versions of Java, Scala or Kotlin have taken back the throne.
2
u/FredL2 Jun 12 '20
This. Java 13 is a vastly different language from what people generally remember (1.5-1-7).
0
u/PM_ME_YOUR_REPO Jun 12 '20
Too bad the tooling and development ecosystem still sucks.
6
u/SisRob Jun 12 '20
IntelliJ is so good that people use it for whole bunch of different languages and it's one of the most popular IDEs.
And about tooling - I think that maven is the best build management system I've ever seen.
9
u/ace0fife1thaezeishu9 Jun 12 '20 edited Jun 13 '20
Try looking at a second build system then.
Maven doesn't have a true task graph. It has multiple projects and a lifecycle, but you can't have dependencies across different sub-projects and lifecylce steps.
Maven mixes dependency descriptors with build files, so that every tool that wants to parse Maven artifact metadata needs to implement a complete Maven parser. Variables are not resolved during build, but the references go unmodified into the artifact metadata repository, so that any tool resolving dependencies has to download and evaluate an absurd chain of parent poms.
Maven does not implement hash caching of previous build results. Incremental builds are flaky, they fail to rebuild if they should and vice versa. This is an insane time sink. I have seen developers spending more than 50% of their work day waiting for Maven to recompile huge projects just to test several single line changes.
Maven does not return an error for impossible dependency resolutions, it just returns some version. A fix has been attempted with version ranges long ago, but no library uses version ranges. When specifying a version range, Maven will mix snapshots and releases and select the "highest" value. It should instead compare versions along multiple dimension, where one is the number, another is the stability.
Maven does not offer to programmatically create targets. If you have any tasks that are a cross product of inputs, for example architecture and optimization level, you cannot trigger a specific build, for example amd64 in debug mode, unless you manually define a target for each combination.
Maven reuses the local repository for dependency resolution for all projects built on the same machine. It does not check if a cached artifact is actually from a valid source for the current build. This means building one project can break the build of an unrelated different project, because a newer version of a transitive dependency shared by both projects has been downloaded.
Maven build files do not support source level debugging. Complex build processes are programs in their own right, sometimes you need to inspect what they do. Because Maven build files are declarative, it is basically impossible to debug the build process itself. Trying to trace the Maven implementation itself with a Java debugger is pure horror.
Maven does not check the signature of downloaded artifacts. Anybody who can intercept the https connection to Maven Central can hide payloads in jar files. Several untrustworhty governments have access to an ssl signature authority blindly accepted by Maven for any artifact.
Maven has no concept of dependency pinning. If you declare a semantic versioning dependency range like [2.5,3), once you release a new minor version of your application, you want all of those ranges to be pinned down to their current minor, so for example [2.6,2.7). If you have a particular tag, you want the range to be pinned to [2.6.1] exactly. This needs to happen across the entire dependency graph. Pinning is necessary to avoid introducing regressions in bugfix releases.
Maven has no concept of platform architecture. If you need a native library, you have to explicitly refer to an artifact with a particular classifier. If the native library is in a transitive dependency, you just have to divine that it would be included and manually refer to the native part. Maven needs to have a concept of multiple dependency dimensions. Building with dependencies on libfoo and amd64 means that if libfoo delcares a dependency on libbar, there must be an automatic inferred dependency to libbar-amd64, if that exists. Also forget building for the current platform only to just run stuff without building the same software for everything under the sun as well.
I can continue writing this list until sunset, but I'm starting to get bored, so I will stop here. Gradle is not perfect, but it does almost all of that correctly. Before Gradle existed, I wrote an entire build system myself, fixing most of the mistakes in that list, and it was still a net time gain over using Maven. Maven is the single worst designed build system I have ever seen.
1
u/iEliteTester Jun 12 '20
I have had to do a could of Java projects for uni and in the last one I tried using maven to make it work better. It was better but after reading this comment I think I'll just try gradle too.
1
u/PM_ME_YOUR_REPO Jun 12 '20
I had a short term gig in Java dev after years of work in the C# and Go worlds. Maven made me want to commit sudoku. Granted, it was a government contractor position, and someone higher up got it in their head that IntelliJ is a Russian honeypot, so we weren't permitted to use it. It was all Eclipse.
In any case, I have never had a worse experience as an enterprise dev than that role working with Java. They had lots of issues (git 2 hard, lel we use svn now, among others), but I cannot help but put a large amount of the blame on Java's ecosystem.
9
Jun 12 '20
Not a Java dev here.
Seems like that someone higher up is just dumb. Wouldn't blame it on java's ecosystem.
1
u/d360jr Jun 12 '20
For Java? I haven’t really found a debugger as easy to pick up and use as beginner in any other languages. Eclipse Java is great.
I had a tough time finding a comparable environment for c/cpp that was just as easy to setup and run on any platform. It legit took like over four hours to get cpp boost libraries going for class in vscode just because the documentation and sucked coming from eclipse Java.
What’re you comparing it to that has such a good ecosystem?
1
u/TryingT0Wr1t3 Jun 12 '20
I think most people opinions on Eclipse are long before Oxygen or any newer versions of Eclipse. A lot of people dropped using Eclipse around the same time Android Studio switched to Intellij.
Newer versions of Eclipse are indeed good.
1
u/PM_ME_YOUR_REPO Jun 12 '20
Visual Studio beats eclipse in every way I can think of. Alternatively, taking things from a simpler angle, Go has excellent tooling.
1
u/d360jr Jun 13 '20 edited Jun 13 '20
Huh, VS looks alright if you’re on a supported platform. Go looks alright too.
I’m always going to be a bit salty that they taught us Java in class. The error messages and documentation made it so much easier to learn than other languages I’ve worked with. Take that with a grain of salt though cause I’ve been writing mostly HDLs the last year. Tools in that space are trash :/
Edit: Just realized the sub. I don’t think recommending VS to Linux app developers is the wisest choice haha. Unless you meant code but there’s no Linux support for classic.
Eclipse is basically identical for Java on every platform. Seamless between all of my machines (Linux and windows boxes, a MacBook) which is super nice. Just sync to git when I’m at home or away and everything is the same.
6
u/Tireseas Jun 12 '20
I very much prefer to stay far, far away from anything Oracle touches given the choice. Call it a deeply ingrained professional bias. That and I lived through the early 2000s when Java apps were ugly as all hell and bloated.
9
u/jediwombat87 Jun 12 '20
Personally I like Java. It's the first "real" language I learnt so its syntax just feels "right" to me. Some of the complaints I've heard over the years revolve around the language lacking some features of other modern options, i.e garbage collection, pointers, etc.
I've also had personal experience of Java apps being terrible, but I can't tell you if that's the language's fault, or the developer's.
2
u/iEliteTester Jun 12 '20
I was under the impression java does have a GC?
2
u/yaaaaayPancakes Jun 12 '20
It's had a GC since the beginning. It's one of the major selling points, since in the "bad old days" we had to malloc and free our memory manually. Now any newb can come in and program and usually not footgun themselves with memory leaks most of the time.
1
9
4
Jun 12 '20
Some people hate Java desktop apps for some reason unknown to me (it's my preferred one after all), but there's a good reason why it's so widespread in server space, especially with servlets and Tomcat.
4
u/Slash_Root Jun 12 '20
Linux hobbyists/desktop users don't like it because they feel the desktop apps don't integrate well with their desktop. Linux infrastructure people all have some memory of being called in the middle of the night to add memory and listen to developers read stack traces. Developers have struggled with it's heavy and often overcomplicated ecosystem/tooling. Also, Oracle has a dubious reputation.
It's really just blowing off steam. It's a pervasive language/platform and you probably touch it everyday when dealing with Fortune 500 companies. A lot of us in the industry make a living keeping java apps up.
4
u/jemag Jun 12 '20
I think your feeling of "majority" or "everyone" comes mainly from the fact that every once in a while there will be comments on reddit like "Ah, but at least it's not Java", that receive a fair amount of upvotes.
Java is simply a divisive language. There are people that simply despise Oracle, there are people that do not like its heavy Object Oriented focus, there are people that saw a couple decade old information about Java and think it still applies (e.g.: lot of security problems, poor performance, bad tooling - you can even see a lot of those in this thread) and finally there are the non programmers / script kiddies that learn the basics of python or bash and think they have now grasped a solid understanding of programming and other languages.
I have programmed in many different languages, and while Java has it flaws (like heavy memory usage), it still has a lot going for it. I would say that if you go by actual professional programmers, the majority definitely does not hate Java, it is in fact still quite popular (especially in web development).
Note: I have just re-read your post and realized you might be talking specifically about desktop applications. If that is the case, UI can indeed be clunky to develop in java and it will often have a higher memory usage. Although it is still possible to make great desktop applications in java.
4
u/bladeconjurer Jun 12 '20
Someone once said that there are two types of programming languages:
Languages people complain about
Languages that no one uses
0
Jun 12 '20
I don’t see that with python, but generally your statement is correct.
2
u/TryingT0Wr1t3 Jun 12 '20
People definitely complained about Python, it's just popular now. Go take a look how long Python has existed. I remember finding it atrocious in 2006 and it already existed for decade.
2
Jun 12 '20
I still find it atrocious. Getting errors on mixed whitespace usage, come-on. You got to be kidding me.
4
u/Muddysan Jun 12 '20
If you have ever had to use Java in an Enterprise setting you know you need about 8-12 different versions of Java to satisfy all the picky dependencies of each application.
It's slow, it locks up and also it's slow and just runs like hot garbage.
It's the only thing in IT I've found that is universally despised.
9
u/32777694511961311492 Jun 12 '20
As a programmer who is also in to security, java for a long time had a ton of security issues. Most of my friends who were in network security wouldn't install java period if there was no absolute requirement to do so. It's gotten better but, it was bad for a long time.
4
u/SisRob Jun 12 '20
That's Java on Windows alright. I almost feel like Microsoft deliberately tried to make java-experience as bad as possible to push it away.
1
u/yaaaaayPancakes Jun 12 '20
Well, they kinda did. In the era of embrace, extend, extinguish, they created J#. They wanted Java devs to move to .NET, which is pretty much a better designed Java (at least at the time, I'm talking mid 00's).
1
u/32777694511961311492 Jun 13 '20
I get your point but, to be fair it wasn't just Windows. Mainly but not all. Also a vulnerability is a vulnerability regardless of the platform. The only metric after that, that matters is how the company discloses and how fast they patch it. And the java team in this department really sucked.
3
u/fedeb95 Jun 12 '20
Depends on your point of view. Desktop users in the foss community? May hate Java. But the rest of the world doesn't care, since Java is big in the enterprise world. That's why it's still alive. And it have one big advantage over other languages: is widely used and easy to pick up. So it's easier to find developers. Recently other languages have come up in the business, but Java is still widely used (heck, they're still searching for cobol developers...)
3
u/MonkeyPooperMan Jun 12 '20 edited Jun 12 '20
I have 15-ish years of experience with Java and really have no problem with it. I found it to be really effective on the server-side, especially when combined with a few other tools/patterns (Spring, Hibernate/ORM, Ehcache, etc). It is a bit verbose when it comes to Interfaces/Inheritance, and is strongly typed, but those aren't always necessarily bad things. It's code doesn't look as elegant as other languages, and the garbage collector tries to be a blessing and mostly succeeds (but yes, you can shoot yourself in the foot with Java, just not quite as badly as with pointers in C).
And regardless of whether you use Eclipse, Netbeans, or IntelliJ, you can locally setup and test in an server environment that almost exactly mirrors your production instances (I say "almost exactly" because you probably aren't going to setup multiple server nodes/load-balancing/Active Directory/etc on your desktop environment).
Having said all this, I still love Python and my day job is HTML/CSS/Javascript/Angular on the Salesforce platform. I started out back in the day with Qbasic/Basic, a smattering of Assembly/C, Ashton-Tate Dbase 3+, Foxpro, Powerbuilder, C++, Java, and finally ended up where I am today (who says and old dog can't learn a new trick or two?). I have love for quite a few development languages and encourage you to form your own opinion of every language that interests you.
3
u/greenkiweez Jun 12 '20
It's a good language to learn OOP. My professor used to say C++ is like a mustang - a powerful wild beast that you have to tame, while Java is like a mommy - she will nurture you and help you along the way. So most of the assignments were in Java.
OOP seems to be going out of fashion though (looking at Go and Rust).
3
u/pykypyky Jun 12 '20
When we are taking about Java, there's language, there's runtime, and there's ecosystem.
Java as a language is not horrible, but it's a dinosaur. A lot of things were not thought through in it. When you programmed in c#, going into Java feels like an endless wtf. I guess as a programmer, I got spoiled by c# and .net in general.
Runtime has similar problems. It's sort of kind of .net, but it has been written during stone age, and a lot of things feel idiotic. For example, when you start Java program, you must tell runtime how much memory you give it. And it would allocate all of it, and won't use more than that. Personally I am used to process taking only as much ram as it needs, and asking OS for more if it needs more. That's just one example of wtf, there's many many more
Ecosystem as one would imagine is vast, but not every package is too notch. This is not necessarily problem unique to Java, but being one of the oldest, it is one of more notorious. It's next to impossible to avoid using some shit library which would bring up security hole
And to top it off, the language has very few good options for IDE. And you must have IDE when you write Java programs if you want to be efficient, because language intellisence is the only way to write code and not kill yourself. Again, coming from .net world, the choices you have are not good.
Tl,Dr: Java is a mess
1
u/yaaaaayPancakes Jun 12 '20
I came from the .NET world, and for the most part, I agree with you. But I have thoughts on some of you points:
Java as a language is not horrible, but it's a dinosaur. When you programmed in c#, going into Java feels like an endless wtf.
Having been in it exclusively for 5 years, the lack of reified generics is the biggest WTF of all. Thankfully, Kotlin kinda sorta adds the ability to have reified generics, but it's still a kludge since the runtime doesn't support them and it never will, since Java decided that binary backwards compatibility was a requirement (MS chose to break compatibility between .NET 1.1 and 2.0, which added generics).
For example, when you start Java program, you must tell runtime how much memory you give it. And it would allocate all of it, and won't use more than that.
This is only partially true. I was just actually playing with those options yesterday, as I tweak our Gradle builds to not OOM in CI/CD.
There is basically a starting and a max option. If you set both to the same value, then you get the behavior you describe. If you set the starting memory lower, it will ask the OS for more as needed until it hits the max value.
Early versions of the JVM had kinda stupid defaults, but current versions aren't as stupid and usually, you don't have to mess with it (unless your devops team does something like set the containers max memory to 1GB in k8s).
the language has very few good options for IDE
At this point, unless MS has made major updates to VS (last version I used heavily was 2013) I would argue IntelliJ is at about the same level of polish.
Eclipse is still utter trash, and I'm still so thankful that daddy Google forked IntelliJ to create Android Studio, and yeeted the Eclipse Android Development Tools into the Sun.
3
u/RealisticAlarm Jun 12 '20 edited Jun 12 '20
The distaste is multi-faceted, (although the guaranteed cross-platform is a plus):
As a sysadmin: Expect a java app to take significantly much more system resources than an equivalent app written in a leaner language. That wireless management suite ran out of memory and crashed again? Why does it need 4GB anyway? Oh, yeah, it's running on Java.. sigh, let's throw a few more GB at it's container and see (I could run 8+ non-java apps with that memory)
As an end-user: Aside from the endless flood of "There's a Java update available!" prompts I remember from my windows days - Java apps just seem slow. mysql workbench: great product. However sometimes the UI just 'lags' after a click or other interaction - fraction of a second, but noticeable. It's better since I switched to a lighter window manager, but it's still slower than a native app (even electron apps like Atom or VSCode seem more responsive). Another case in point: Libre(Open)Office has been migrating from Java codebase to C++. Result: Faster load times, more responsive UI.
As a developer: After fighting for several hours (in a pair programming exercise, no less) to get a fairly simple hello-world(ish) codebase to build and run, and encountering nothing but classpath errors, version incompatibilities, etc - I never came back. (in comparison with, say, go, nodejs, even .net core: very basic example setups, including setting up the dev environment from scratch could be timed in minutes). Learned another few languages since then, yet I shudder at the thought of ever touching Java again. I think the sysadmins deploying/managing my product will thank me for doing it in a different language, anyway (see point #1)
Footnote: There's also the 'oracle factor' to consider, too..
4
u/zztechman127001 Jun 12 '20
Because having to install the right JRE sucks Because most applications written in Java are slow AF Because most applications written in Java are ugly AF
2
2
u/shvelo Jun 12 '20
Java applications look extremely ugly in most cases.
Only JetBrains makes Java apps that are not eyesores.
2
u/TryingT0Wr1t3 Jun 12 '20 edited Jun 12 '20
I think some people developed bad Java apps that generated the grudges. Good Java Apps, like Intellij and other Jetbrains products exists. Also Java have evolved a lot and some people are still basing their notions in Java 8 (or 6!!!) and on unmaintained GUI libraries that no one should be using right now.
Java is a very good platform if you are using the recent versions and tools and do a good job publishing - like packing the specific JVM you are using alongside your app so that execution of it is seamless.
Also a lot of Android is Java, just using a different JVM. I think people are ok with it.
2
Jun 12 '20
A lot of software, like a lot of everything else, is done in a hurry by a lot of people who really don't know what they are doing and have no time to do it right...
Java became super famous but it has significant flaws, one of which is how resource hungry (read ram) it consumes.... If coded properly, a java written program can work around this flaw, but as seen above that rarely happens... So a lot of software written in Java tend to be resource hungry and clunky ... Which earned the entire language a bad name
2
u/Weirdcko Jun 12 '20
I just don't like writing in java lol. Maybe I'm just too inexperienced in it, but to me it feels very clunky just writing the code.
2
2
u/Hokulewa Jun 12 '20
I don't hate all Java apps. I only hate the ones I have to use.
Of course, they're created by people who really aren't qualified to be creating applications. The real problem is that Java seems appealing to a lot of people who are in over their heads.
3
u/khoonirobo Jun 12 '20
This really depends on what you are building with java. You can build a desktop application with it, but that's a little clunky and there are so many other techs that are nicer. You want to build a bunch of server applications, java and other jvm technologies are brilliant. You want to build a distributed database which needs OS level optimisations, C / C++ / Rust start looking good. Programmers like any set of people tend to get narrowly focused on what they see complain or praise accordingly.
8
Jun 12 '20
Because computer nerds like to complain about everything
1
u/bits_of_entropy Jun 12 '20 edited Jun 12 '20
This comment is derogatory, I prefer the term geek. I don't know why people think it's still okay to use the n-word.
-3
3
u/jess-sch Jun 12 '20
Slow to start, GC causes lag in GUI, memory usage, don't look native. some toolkits don't always register clicks on wayland (BlueJ has this issue where you sometimes have to click twice for it to register on wayland)
also a lot of them suffer from over-engineering slowing down everything.
4
u/tiff_seattle Jun 12 '20
because they are slow and laggy?
7
Jun 12 '20
They're not slow.
0
u/jess-sch Jun 12 '20
they're not slow-as-in-slow, but they feel slow, because the GC tends to crush response times in GUIs.
5
u/edman007 Jun 12 '20
I think the real answer is Swing sucks, it sucks a LOT. Use a java program with actual native UI and it feels native.
3
Jun 12 '20
Neither TuxGuitar nor Sweet Home 3D feel slow to me. JDownloader2 starts up a bit slow but that one has a complex plugin system for hundreds of sites.
In fact, everything with a slow UI I can think of is written in Python, also prone to freezing.
-1
u/jess-sch Jun 12 '20
then I guess you never used IntelliJ or BlueJ on anything less than a computer where the CPU and memory alone is over $600. it's lag city.
3
Jun 12 '20
I do use Eclipse. It's the exception, not the rule. But show me a complex IDE that's not slow... you can't.
1
u/jess-sch Jun 12 '20
Maybe IntelliJ is too complex, because they can't figure out how to show things that actually make sense. My VSCode setup is better at suggesting fixes for compiler errors.
-1
Jun 12 '20
IntelliJ is overrated as fuck. Apart from the rare bug, Eclipse gives me proper autocomplete on Ctrl+Space (fully auto is turned off cause it annoys me).
0
Jun 12 '20
[deleted]
0
u/jess-sch Jun 12 '20
I don't care what fancy feature you have.
You can refactor the shit out of everything? Great. That doesn't mean I should have multiple seconds of input lag in the editor, unless I'm using those refactoring features right now.
-5
u/NoahJelen Jun 12 '20
This I agree with! I play modded Minecraft JE and out of all my games on my laptop, it takes the longest to start!
2
Jun 12 '20
They're bloated, slow, stink at remembering the last used directory, are hardly ever updated, ugly, and require shell shims just to launch properly.
2
u/yet-another-username Jun 12 '20
It's full of security holes, applications tend to be VERY picky about the version of Java required, so in a lot of cases you're relying on venders to add support for later versions of java before you can update. Even minor java security patches tend to break some programs.
A lot of the time venders lag behind in java support, and so you're stuck with old versions of java running. You then petition to management to get those applications removed, and replaced with something else, but it's either not possible, or they wont fund it - so you're stuck supporting the mess.
Oracle has now started charging for using their variant of java, so this is even more of a mine field now for companies with oracle java plastered everywhere..
1
u/drfusterenstein Jun 12 '20
the simple reason is you have to install a program to run a program and then there are security issues.
1
0
u/JesusXD88 Jun 12 '20
Because I hate coding in Java, and so doing it with Eclipse IDE. I'm learning it at uni, and it's a pain, I don't understand most of the things
1
u/deadly_penguin Jun 12 '20
Personally I prefer Netbeans to Eclipse, it seems mildly less shit and mildly less irritating.
1
-6
Jun 12 '20
Cuz it's got jar in it and I hate dictators. /s
1
0
Jun 12 '20
[deleted]
0
Jun 12 '20
[deleted]
1
u/AlexAegis Jun 12 '20
These two statements are not mutually exclusive. IDEA is a great java app. But outside of the java world, it is a bloated, slow, heavy ide. Has good features, but a java app will forever be a java app.
0
Jun 12 '20
[deleted]
4
u/ForTheReallys Jun 12 '20
Can you elaborate on how it's more of an "expert level language" than lower level languages like C/C++?
159
u/edman007 Jun 12 '20
Java has it's good points (it runs everywhere), but the flip side is it feels clunky. Standard Java apps don't use any OS specific things. That means it doesn't accept your GTK themes, your KDE themes, it doesn't integrate well with any system service.
I think Java just feels clunky, and it's largely because if you want an app that runs everywhere then it nessicarely can't integrate with anything, it can't be optimized to any system, and it needs to follow its own rules so it doesn't work well with any OS.
Now it doesn't have to be, I've see Java apps that use the native libraries, but they were not cross platform.