4 ms·
I am not convinced that Java is adequate. I do not know if the problems are related to the Java language or to the typical Java programmers, but Java is the on
by adrian_b 4y ago
I am not convinced that Java is adequate.
I do not know if the problems are related to the Java language or to the typical Java programmers, but Java is the only programming language where I have seen a strong correlation between the programming language used to implement some application and a low quality of that application.
During decades of experience with various programs, whenever I was surprised that a program seemed to be abnormally slow, or it had an unusually ugly GUI, or it had a GUI that was impossible to customize, e.g. it was impossible to change the default font or the size of the font, or it had various other annoying features seldom encountered in other programs, I discovered that it was written in Java.
Most of these annoying programs where commercial programs, some of them very expensive programs.
The most recent Java problem that I have encountered was last year, when I could not install some expensive program, because the installer crashed immediately.
After some time wasted to discover the reason, the conclusion was that the installer was written in Java and it always crashed immediately on any computer to which a 30-bit monitor was connected.
That program had both Windows and Linux versions, but both crashed in the presence of a 30-bit monitor, so the Java installer was of the kind "write once, crash anywhere".
The workaround was to disable the GUI of the installer and make an installation from the command line.
There are some 15 years since I use only 30-bit monitors, but this was the first time when I have seen such a behavior (probably because I avoid Java programs, due to past experiences). Googling has shown that this was actually a well known bug in Java installers, which had not been solved in a long time.
- valbaca 4y agoI'm with you, even as a Java developer I can immediately recognize when something was written in Java: it's ugly and slow. When it crashes, you know they missed a NPE or tried to use multiple threads.
- gorjusborg 4y ago> I'm with you, even as a Java developer I can immediately recognize when something was written in Java Sure, if we are talking about desktop applications and we ignore the exceptions (Intellij / Minecraft).
- 3836293648 4y agoMinecraft's menus absolutely have that hacky terribleness feeling. It's still much better than Minecraft Bedrock (the C++ reimplementation), but it's also noticeably behind everything else
- bityard 4y ago> Java is the only programming language where I have seen a strong correlation between the programming language used to implement some application and a low quality of that application. Funny, I hear this sentiment more about PHP which deserved its poor reputation in the early days but is actually quite a nice language now and has been for a good long bit. I think the biggest problem some people have with certain programming languages is that they don't "look" a certain way they prefer (syntax-wise), or don't have enough modern buzzwords associated with them.
- haspok 4y agoJava UI and applets have been abandoned long ago (>10 years). This was partly due to webapps becoming the standard, but also the realization that for desktop apps non-native UIs just suck. The vast majority of Java (=running on the JVM) software these days is server-side, without any user interface.
- TheRealDunkirk 4y agoPrecisely, and exactly why the programming world is an absolute, cargo-culting mess of Javascript frameworks and libraries these days. Sure, React is winning the mindshare war now, but it's just the least ugly baby winning the beauty pageant at the county fair.
- cutler 4y agoIf Javascript produces much better UX than Swing/JavaFX then surely that's the right tool for the job? SPA with Angular or React isn't the only choice anymore as Hotwire/Stimulus and similar libraries (Unpoly, Inertia, htmx) testify, allowing you to handle your routing and state management on the server while preserving partial updates on the client.
- adrian_b 4y agoYou are right that all the Java programs with which I had problems were programs with a Java GUI. With Java programs without a Java GUI, I never had problems.
- tannhaeuser 4y agoWhat seems to be little known is that Java began life as a language for programming set-top boxes with lots of UI, and continues to be used for Blue-Ray disc menus/apps. Sun and Oracle also invested quite a bit into developing JavaFX as an attempt at "RIAs" running in browsers when it was clear Applets were going nowhere, yet JavaScript wasn't quite as developed as it is today, and Flash wasn't seen as a choice for complex apps.
- twobitshifter 4y agoI think that’s true but, Android applications are java/kotlin and run on google’s version of the jvm. there are many Uis people interact with that no longer have any java smell.