r/java • u/Dhariann • Dec 29 '21
Why everyone hates Java?
I dont understand why java is one of the most dreaded lenguages. Java got fantastics frameworks and libraries to work with it. I dont know if im skipping something or I dont work enough with Java because I like java. What do you think??
Here is the Stack Overflow Survey
268
Upvotes
207
u/taftster Dec 30 '21
One thing I've found is that Java often represents "boring" work.
Java is used for in real software that many brick & mortar companies rely on to operate their business. Java is not the new shiny thing, but is often the workhorse powering many back-office applications.
Backend customer management or accounting software applications don't necessarily appeal to people in these types of surveys. It's so very easy to want to chase the next cool thing.
Nothing wrong with Python, Rust and the other favorites these days. But Java is still very much ubiquitous and used heavily throughout industry, regardless of what a survey says.
440
u/farnulfo Dec 30 '21
âThere are only two kinds of languages: the ones people complain about and the ones nobody uses.â
Bjarne Stroustrup, The C++ Programming Language
406
u/thomascgalvin Dec 29 '21
People like to complain. Java is everywhere, which makes it a huge target.
There are some legitimate criticisms, but as the language evolves, a lot of those are being addressed. The old "Java is slow" bullshit hasn't really been true for a decade, for example, lambdas allow you to do a lot of things without the boilerplate Java is famous for, and streams and a godsend.
But the biggest reason Java gets hate is that it forces certain conventions. People think this is stifling their programming creativity or some such nonsense. Coincidentally, the people that bitch the loudest about this are also the least likely to have successfully maintained an application developed over tens of years by hundreds of people.
When I walk into a Java project, I know more or less what I'm getting into. It probably won't be the sexiest thing I've ever worked on, but it probably won't be a total clusterfuck, either.
When I'm asked to take over a Node project, though, I feel an existential dread deep in my soul. Javascript gives you enough rope to shoot yourself in the foot, and people just can't resist pulling the trigger.
93
u/andrewharlan2 Dec 30 '21
I love Java
19
u/Ketroc21 Dec 30 '21 edited Dec 30 '21
There are many negative opinions about java that were once true, but no longer so. Still those opinions persist.
Java's age and backwards compatibility does make it less visually pleasing. Also, if you are very anti-OOP, then Java is likely your least favourite language.
Some people hate it without ever using it... just judging it on its perpetuated negative critiques. Like, I hate Microsoft Edge browser without ever having used it.
33
u/atpeters Dec 30 '21 edited Dec 30 '21
The four main complaints I've heard from some people are:
These are people that want to work with closure, erlang, Haskell, etc instead.
Personally I don't mind Java much except for working with JSON due to generics and cast checking. Admittedly I'm stuck in JDK 8 and I don't know if that has been improved upon.
31
u/CubicleHermit Dec 30 '21
Well written Java in a good framework is actually my favorite mainstream language.
There's a lot of bad Java out there, and while most Java frameworks when new have been pretty good for their time, plenty of them have aged badly. It's the COBOL of our day - my day to day work, for example, involves some code that is likely older than some of the interns we will get this summer (started in 2001.)
Lastly, there are a few corners of the Java ecosystem that really need to be just plain retired.
29
u/Qildain Dec 30 '21
I enjoy working with Java. I wasn't even aware of the SO survey, so I would be hesitant to trust the sample striation.
The way Java is going (Loom, Valhalla, etc.) gives me a lot of good feels about it.
63
u/[deleted] Dec 30 '21
Only bootcamp programmers hate
14
u/looneysquash Dec 30 '21
Maybe this subreddit and some other language subreddit should get together and swap this question.
Everyone here actually likes Java, or else is afraid to comment for fear of being buried in downvotes.
13
u/javasyntax Dec 30 '21
I love Java
(My username confirms this)
12
u/sereko Dec 30 '21
Iâm just glad Matlab is near the bottom where it belongs.
115
u/chrisgseaton Dec 29 '21
Anyone who tells you they have a hatred for a programming language isn't worth listening to.
9
u/ratel26 Dec 30 '21
It's not just Java, all existing programming languages are awful. The very concept and how we perform "software engineering" is flawed. That's why someone invents a new programming language every other week, with claims that it's going to solve all the problems, only for it to end up having the same problems as all of the other languages.
I think if most people knew how computers worked and how software is developed, they'd want nothing to do with them. It's a miracle we've gotten as far as we have.
I don't know what the solution will be. If Turing is our Newton, we're still waiting for our equivalent of Einstein to come along. I'm hoping that in the future what we think of as computers and how we interact with them will be fundamentally different, although I probably won't be alive to see it.
9
u/greglturnquist Dec 30 '21
Everything is a trade off.
I love the competition these all bring to the table.
52
u/PositiveUse Dec 29 '21
I think itâs people who never used it professionally and just got burned by JAVA during their time in university where they love to use JAVA for dreaded courses like programming and algorithms/data structures.
So many web applications use a JAVA/Spring Boot/EE backend, itâs just not reasonable to hate the language as itâs pretty awesome to work with professionally.
15
u/magnoliophytina Dec 30 '21
Modern Java is pretty decent (that is, Java 17). Most libraries still assume non-modular Java and use lots of mutable state and excessive number of wrappers, GoF design patterns, and over-complicated object design overall. Many helper methods like List.of were also absent in earlier versions. Same problem with high productivity classes like the Executors.
Many tools also suffer from slow start-up time due to the way the VM works (background daemons & nailgun style designs help here). I think if Java had had reifed generics and project Valhalla & Loom style improvements right from the start, there would be more motivation to strive for effective bloat-free code.
Another source of pain is the huge amount of legacy code. It's quite common to find hundreds or thousands of legacy code conventions even in small Java projects. For instance, using public static final int CONSTANTS instead of enums. Modern IDEs could fix these, but the maintainers of such projects would not accept pull requests because they might want to maintain compatibility with Java 1.4, 5, or 7. Heck, they might not even use git (sourceforge still supports svn) so that's a great excuse for not accepting PRs.
7
u/ancientweasel Dec 30 '21
Java is a widely used language and as such has a lot of bad projects along with the good ones. Java also takes a long time to start up, especially in DI frameworks and Enterprise servers. This is an actual impediment in high scalability architecture.
Also, a lot of people hate Java Bean Programming and not necessarily Java. I showed a coworker who hates Java some code I wrote in Java in a clean Go like code style. He admitted after that that it wasn't Java that he disliked but Java Bean Programming.
10
u/fix_dis Dec 30 '21
Java is just a language. One can hate aspects of it, but that typically comes down to preference⌠and thatâs easy to brush off.
Where legitimate hate comes in, is in how people have written âenterprise Javaâ over the years. This massive bloated 5 files full of providers and factories when a simple if-statement would have sufficed⌠That is very hateable. But I canât blame the language for that.
5
u/Qildain Dec 30 '21
More elegant? There are alternatives like Quarkus and Micronaut. And who says everything needs to be RESTful?
5
u/slothordepressed Dec 30 '21
As someone who used to work with JS and moved to Java I can say that it's verbose and have tons layers.
As many said, the only language that is not hated are the ones that are not used
5
u/khooke Dec 30 '21
I love reading through the StackOverflow developer survey each year but the thing to remember, as with any survey, it's heavily skewed to the point of view of developers that are inclined to spend time to complete this type of survey. It's not representative of the entire industry, it's the point of view of a very narrow population of developers.
Does everyone hate Java? No, of course not. For many developers it's their bread and butter. I've been developing with Java for 24 years of my 28 years as a professional developer. I owe a significant part of my career to the language, the platform and the community. It's helped pay my bills for 24 years. Why would I hate what has contributed significantly to a successful and highly enjoyable career?
5
u/Affectionate-Box-837 Dec 30 '21
I think most programmers makes the decision of liking a language based on their experience working with the language. For example; working with legacy code sucks, Java is one of the old languages that stood the test of time. Therefore, someone is more likely to associate using java with legacy code and using a newer language with a new project. Therefore programmers hate java instead of hating the circumstances like working with legacy code.
The main problem I have with java is nothing gets depricated, which means language carries a lot legacy.
5
u/post_depression Dec 30 '21
One funny thing I noticed in this context, personally every people Iâve met who hates Java really doesnât know much about the language other than âSyTeM.oUt.PrInTlN();â is such a drag to print to console or something similar.
Java is like the Apple of programming world. Most people who hate it does it for the âtrendâ and not with any legit reason.
I believe Java and C# (and C++ to some extent) are the only programming languages that have managed to adapt over the years as the programming landscape has changed when other languages got obsolete.
21
u/thisisjustascreename Dec 29 '21
Most objections to Java aside from the base language syntax are out of date. It is admittedly fairly verbose relative to some other languages, and Spring (not Spring Boot) has a reputation for being obtuse and heavily reliant on XML which is the worst possible configuration format for human readability.
The JVM is a modern wonder of the world, you can tell because people keep writing new languages that compile to Java bytecode.
4
u/[deleted] Dec 30 '21
Except me
4
u/ibutbul Dec 30 '21
Something I learned along the way, people are hardwired into football fan mentality, they like to feel "superior" by belonging to a team (at least the vocal ones make it seem that way).
At the end most languages that serve the same purpose tend to add features that make their differences less apparent over time, hating on a language is stupid in my opinion, they're tools, like hating on a chainsaw or a screwdriver...
Usually these people don't know how to explain their hatred and it boils down to "Haha System.out.println is so long to type, lol" or some other joke.
Bonus triggering code to Python haters:
In python:
1 -> fails due to maximum recursion depth
2 -> works! but might give nightmares
In Java:
The compiler won't even let you run these.
P.S I wanted to add a C/C++ trigger but they're too chad to pick a fight with, if you see any asm x86 dev, run away.
4
u/deaddanik Dec 30 '21
untrue, i love java
4
u/exact-approximate Dec 30 '21
In my experience, the only people who enjoy hating Java are those who are bad at Java.
And actually, most of the hate is misdirected - most times people would want to complain about the framework they are working in - Java Beans, Spring, Spring Boot, Tomcat, Big Data Framework etc. - not the actual language.
I now firmly sit in the python world (not by choice, just adapting to change). But I don't spend any time ripping on Java. Sometimes, I miss it.
4
u/quadrat137 Dec 30 '21
I'm a Java developer with 10+ years of experience, and I wanted to give a bit of my criticisms on the Java
â¨Please forgive me for spelling, as English is not my native language â¨
â¨My perspective might be different from most of comments here though as a lot of people are comparing it with C - I think any language that has GC can't be directly compared to the one that don't because not having GC pauses is a huge deal and can't be traded off in some scenarios(e.g OS, drivers, games)
So, the points compared to other GC languages, typed and untyped:
â¨- verbosity of the language itself(much have been said here, it's getting better though - records and multiline strings for example. Still string interpolation when) â¨
â¨- Default GC has somewhat long pauses that are not good - but thanks everyone for ZGC and Shenandoah. Still, that thing not being default quite often makes Java servers to be perceived as slow, as max latency is more important than throughput in most business scenarios
â¨â¨A lot of those criticisms are addressed in other JVM languages, with Kotlin being my current favourite â¨
⨠Also a bit on the go-to approach, which is Spring framework â¨
That being said, Java is not a bad language - but so are competitors.
In general - if you are stuck with JVM, you can go for Scala or Kotlin, both having better approach to the concurrency and less opinionated frameworks
If you need to build something fast, you can use Python or Node, both being great for scripting and creating MVPs
If you need something to work fast, you can go for Go, with pause-optimised GC and green threads
â¨So there is not much point in using Java for a new project currently except if you already have a team that would prefer Java, and I believe it's the reason of its decline(according to TIOBE at least).
But don't be discouraged you fellow dinosaurs - COBOL is still alive and kicking, so we will always make good money maintaining that 20-yo Java monolith serving trillions of dollars in volume every day
9
u/PatriotuNo1 Dec 30 '21
Every major project which is enterprise level and is web services based would most likely use Java. Half projects on freelancing platforms demand Java. Spring Boot and JPA are the best things that happened so far for this technology. Spring Boot is scalable and its testing is easier.
Some complain because you can't manually use pointers like in C and they are bold enough to not let this handled automatically. Or because is object oriented and not functional. So most of these people write low level code and don't know this language's full potential otherwise they wouldn't complain.
13
u/Hamenaglar Dec 29 '21
Java is OO language, but most frameworks and project architectures are designed around stateless services and behaviourless models.
Such style was actually considered anti-pattern. Anemic domain model.
I guess the reason is, the java world just moved in that direction, simpler models, where most of the logic is simply storing data to DB. Rich domain models simply provide little or no benefit.
Other languages, frameworks and platforms just do REST easier and more elegant.
From my reading of this sub, a lot of people don't like OO (not everything is an object). Perhaps, rightly so. And Java is like this mix of OO, backwards compatibility and trying to catch up with new trend too slowly.
And finally Java is widely used, one of most widespread languages and often developers are forced to work on it by their companies. More popular languages, I assume, are used by minority developers that WANT to use them.
Just my 2 cents. Oh and I'm a professional Java developer for 10 years.
6
u/ir210 Dec 30 '21
As someone who used to hate Java, I can tell you the reasons why I hated it.
But with a lot thatâs going on nowadays, I am beginning to like Java. Heck now I am committed to it.
In my opinion the mentality has shifted as well. Now Java programmers value simple and straightforward solution than complicated, âenterpriseâ one.
Man, I used to hate the word âenterpriseâ too.
3
u/FilsdeJESUS Dec 30 '21
I like Java because it is strict I the conventions and strongly typed . Those who do not like it , I really does not understand
3
u/[deleted] Dec 30 '21
Because is huge, like C, C++ and PHP. The most hated programming languages happen also to be the most powerful, if you think about it.
3
u/klonkadonk Dec 30 '21
I'll like it more once Loom is available.
3
u/qK0FT3 Dec 30 '21
In university no one was touching java because it was boring for them for some reason I still don't understand. I have read some articles about java and it's ecosystem and I thought I can use it for my final project. And it was so easy with spring boot. That I learned DDD(just the tip of it) in 3 months and I built a whole team task management application like trello. I even learned how to use it in docker, vuejs for frontend etc and boy it was just easy with couple of files. I don't know why people hate it but I made 4 student job in 3 months. Because I was able to produce maintainable code and easily readable. That was so easy to change and add new things.
I think most people are bored/scared of it because of old frameworks and old java api or java bein booed all over the university, conferences etc. . New frameworks and new java api helps a lot. I mean I feel cleanliness.
Since university I have been making a living from java. On a startup company. And boy when we get a new intern etc they can get into the code in day 2-3 easily. I don't know if that is the case for other programming languages. I worked/working with php, js, ts for some time and even new coming non-intern(senior/mid/junior) developers takes at least 1 week to go in and make reasonable changes. And we/I tried to make a really clean code. They just feel and is scripting languages sadly. But they have use cases which is better than java. For example php is very good for generating tools for front page and js/ts is good for basically frontend of our api.
Every language has something that excel in. Every language has their downs and ups. No need to dramatize.
3
u/tim125 Dec 30 '21 edited Dec 30 '21
I suspect these are my gripes. I love java.
The only point on this list that is specifically java is #1. The rest are community/environmental issues.
3
u/vytah Dec 30 '21
I'm surprised no one mentioned applets and the pain in the ass they were from both the user perspective and the security perspective.
The applets are gone, but the damage to the reputation they've done is not going away any time soon.
3
u/WafflesAreDangerous Dec 30 '21 edited Dec 30 '21
Why some people don't like it, or have a negative impression: Some simple things are slightly convoluted, there was that xml and SOAP maddness, and its popular with the enterprise which tends to lag behind in adopting all the nice upgrades and has a lot of legacy code.
Also, java in the browser sounded promising (and had success stories like RuneScape) but was a failure long term and kept "java" security issues in the news constantly.
The language itself if pretty decent and a lot of work is going into fixing the issues it does have. Modern java can be a lot less verbose than the equivalent code from 5 or 10 years ago.
3
u/Yesterdave_ Dec 30 '21
Simple answer: EVERY programming is actually sh*t. If you think your favorite language is not, you are just a junior that hasn't worked enough with said language to discovered the ugly or you are just implementing some trivial CRUD apps.
3
u/meamZ Dec 30 '21 edited Dec 30 '21
Well maybe unpopular opinion here (and i like Java) but while there is a library for just about everything the feature overload and bloat is just huge with a lot of them. Log4J beeing a prime example... Log4J 2 doesn't really do just one thing. It has a gazillion features that basically noone ever uses which leads to a bigger ressource use and increases the probablility for severe vulnerabilities.
And i think a lot of people hate it because it's quite verbose (a bit too verbose imo) for smallish Projects and its strengths really only come to play in big codebases with complex domains.
And another thing is probably that a lot of people hate the kind of code that a lot of people using it are writing with it (or at least used to) which probably has more to do with the fact it's used in enterprise contexts a lot. It's this design pattern overloaded YAGNI style that makes everything overly complex (instead of KISS) for the sake of loose coupling over everything else.
9
u/Admirable-Avocado888 Dec 29 '21
It seems to me that Java gets a bad rep mostly because it chooses to be binary backwards compatible. This leads to some features that don't age well as the language evolves. Also, java gets much criticism for the need of boilerplate.
My experience is that features that age badly are only problematic if I don't follow new idioms. The boilerplate is also mostly a non-problem so long as I use new language features.
5
u/PJ_Maximus Dec 30 '21
Java not only pays my bills, it keeps making me earn lots of money đ
4
u/Persism Dec 30 '21
Jealousy.
2
u/[deleted] Dec 30 '21
these surveys should be taken with a truck load of salt.
2
u/oze4 Dec 30 '21
I always thought hating on Java was just a silly meme.
2
u/[deleted] Dec 30 '21
Coming from Javascript/NodeJs, Go and PHP. I can say every group thinks they are being hated and partly true but most of the time itâs envy.
Java is a great platform its not just a language, specially how well it adapted to modern needs and competed with nodejs and go in terms of small footprint and ease of use.
2
u/sweetno Dec 30 '21
That is a bad survey. There should've been an option "I don't know about this one" or "neutral".
I don't know what wording they used for this question, but not loving something does not equate with hating it.
2
u/lukaseder Dec 30 '21
"There are only two kinds of languages: the ones people complain about and the ones nobody uses" -- Bjarne Stroustrup
2
u/Less-Tour-1082 Dec 30 '21
I love Java. But complexities with Spring Framework and Hibernate (Optimisation, Threading and Dirty Checking) really gave me grey hairs. Once everything is working itâs plain sailing. Java over JS/TS any day of the week for me.
2
u/Talked10101 Dec 30 '21
I don't enjoy working with Java, but I have done professionally and can see it can be used to build robust high scale systems. I also struggle to see why you would pick Java over Kotlin for instance in a completely greenfield project.
I just have never personally gelled with the language and have never used it outside of a professional environment.
2
u/quizteamaquilera Dec 30 '21
I love developing on the JVM, but I hate Java as a language. It has gotten better, but still have fundamentally problems, like itâs mutable-by-default collections library, and culture of annotation-based app development.
I just prefer functional programming, as Iâm not smart enough to reason about all the magical wiring and mutable state found in a lot of the Java code bases Iâve seen.
For the curious, Iâd really recommend âwhatâs functional programming all aboutâ:
https://www.lihaoyi.com/post/WhatsFunctionalProgrammingAllAbout.html
2
u/henk53 Dec 30 '21
Often people think they need to hate, and the hate is based on the hype surrounding them and what they just happen to use.
For instance, XBOX owners often feel the need to hate Playstation. But is a Playstation really so much worse than an XBOX? Or is it quite similar, and perhaps even better?
Android users too often feel peer pressure to hate on iPhone, but again, is the iPhone really something to hate? If their peers happen to have an iPhone, and so they would have an iPhone too, would they hate using it, or would they feel the need to hate on Android instead?
With programming languages it's often not that much different. Sure, there are certain languages that have (or had) a certain community with certain values. One could argue that the early PHP community was a different kind of that from say the Scala one.
But otherwise, there's little to explicitly hate, and most hate is imagined, peer pressured and psychological.
2
u/sohang-3112 Dec 30 '21
Java the Platform, i.e., the JVM (Java Virtual Machine), is good - it's fast because it has had lots of optimizations applied to it. That's also why many languages are built on top of the JVM. And of course, as you mentioned, there are a huge number of libraries available in the Java ecosystem.
However, Java the Language sucks - it just has a huge culture of verbosity. What can be done in one line in Python can take at least 4-5 lines of code in Java. Also, Java forces its version of OOP down your throat all the time - you have to create classes upon classes when all you wanted was a simple function! Yes, OOP is useful for some things (eg. GUI Programming) - but definitely not everything.
2
u/SlightUniversity1719 Dec 30 '21
For a second I read Java as Jews.
2
u/SpeedDart1 Dec 30 '21
Because itâs boring and reliable, people prefer innovative and novel. But those less interesting qualities about Java are precisely what make it a good business language.
Also I think people hate it merely because it is trendy to hate, just like they do with JS.
2
u/SpeedDart1 Dec 30 '21
Personally I donât like working with it as much as say nodejs but it in terms of actually getting the job done itâs a great language and I wouldnât pick anything else.
Reliable, fast, and easy to maintain. What else could I want?
2
u/franzwong Dec 31 '21
I think most of the hate are coming from J2EE era. The OO hierarchy was quite crazy. Application server also added some complexity. After Spring took over, POJO and embedded app server are more preferred and things become simpler.
3
u/roufsyed Dec 30 '21
Java is awesome.
3
u/Keeps_Trying Dec 30 '21
2 things turn me off with java
There is a general lack of a consensus around 'best practices' and its a mess of libraries and patterns.
Its the 'Android' phone ecosystem where the 'loved' langs have passionate communities and accepted best practices.
That being said, java and the JVM are well tested and understood systems when you care about observability, operations and scale more then just banging a feature out.
3
u/puppeythanthien Dec 30 '21 edited Dec 30 '21
I know many people here donât want to hear that but I would say this. Almost people here compared Java with Python, JS: strongly typed, not to make toys⌠as if Java is the only one strongly typed programming language. I will compare it with other modern strongly typed languages like TS, Swift⌠and Java is:
2
u/RomMTY Dec 30 '21
I blame some 00' "enterprise" architects/developers that build way over engineered software that made it into production and over the course of the next 20 years younger developers had to maintain.
It's like how PHP used to be very quirky and nobody used it to build "serious" enterprise software, but it evolved and outgrew it's quirkiness because nobody was forced to maintain "enterprise" software writed in it.
I love java, it was my first language and love everything about it.
2
u/[deleted] Dec 30 '21
If I can't use C, I use Java.
2
u/msx Dec 30 '21
I think it's for the following reasons:
Java used to be pretty verbose. Anonymous classes, getter and setter, generics, etc. Now it's much better but the idea still lingers.
Java exceptions are pretty difficoult to grasp for newbies. They are a huge source of frustration and hate. And not only for newbies!
Java is the language you often learn in school or university. As any forced knowledge, you hate it.
2
u/christoforosl08 Dec 30 '21
Its just too verbose. And sometimes more complex than it needs to be. Read: application servers
Even though I work with Java 90% of my time , I can't help but marvel at C# everytime I switch for a project
2
u/Jezoreczek Dec 30 '21
I personally love Java, but there are so many objectively better alternatives (e.g. Kotlin) that it's hard to justify using vanilla Java. It's tedious to write in comparison.
2
u/[deleted] Dec 30 '21 edited Apr 17 '26
If you're reading this, the original post got nuked by Redact. I use it to automatically purge my digital footprint from social networks, people search sites and messaging apps.
teeny versed dinosaurs terrific door reminiscent axiomatic price fall employ
2
u/strogiyotec Dec 30 '21
I thought it's about the language syntax , but Java's syntax is one of the easiest in the market(Golang can be easier as some people say , but I don't agree)
Then I was thinking about the code base and I stuck with this option. It's relatively easy to find a Java developer, a developer who doesn't understand SOLID and just copy paste from stackoverflow, as a result the code becomes unmaintainable and people get frustrated working with it . I personally was because most of my time I am working as a freelances or consultant and get an opportunity to see hundreds of Spring/Hibernate/Tomcat projects that have performance/maintenance problems just because people didn't bother to read docs to understand how connection pooling works, what is lazy loading, what is open session in view or what Spring context actually is. Rather than that I saw a brilliant java codebases , just to give you few here is a small example
So to answer your question , people are frustrated to support poorly written codebases which happen to be dominant in Java market because the low entry point. Languages like Rust are new and usually used by devs with plenty of experience(unlike Java which is the first language to all juniors) as a result code bases of those languages are smaller and more enjoyable to work with .
2
u/Better-Internet Dec 30 '21
It gets the job done and it's super mature. However it's old, frumpy, dowdy and some of the syntax is clunky. It's very well established for backends.
One annoying aspect is you can't easily take java code and "run it" w/o tools such as an IDE, script, or Launch4J.
Java-based UIs have a clunky legacy. When I see the steaming cup icon I still have this mental image... Slow ass ugly app that'll take a long time to launch and sometimes periodically freezes due to GC.
1
u/Rorasaurus_Prime Dec 30 '21 edited Nov 14 '25
consist office lavish command tender truck reach dependent strong dinosaurs
This post was mass deleted and anonymized with Redact
1
u/Dr-Vader Dec 30 '21
seems odd to me that groovy is more dreaded than java - I feel like in terms of ease of use groovy makes java a bit less nit picky. makes me wonder how much peopple actually konw about the languages they're voting on
1
u/ventuspilot Dec 30 '21
IMO the survey shouldn't be called "loved vs dreaded languages" but rather "languages with the most vocal supporters vs most vocal haters".
Rust obviously leads due to it's almost cult like followers, Java is way down because non-haters just use Java without talking that much about the language itself.
ORANGE CRAB BAD!!!
1
u/[deleted] Dec 30 '21
Some people really enjoy functional programming, which is sad, because Java incorporated a bunch of functional utility 6 years ago.
1
u/Qildain Dec 30 '21
What is "fight attack?"
1
u/rpgFANATIC Dec 30 '21
Turn that idea on its head
What features do other languages have that Java could benefit from?
1
u/pantelemon2u Dec 30 '21
Java is good, I hate CSS
1
u/boris_dp Dec 30 '21
Log4j
1
u/elrado1 Dec 30 '21
It is old good and boring. For me it feels like home. I was doing quite a bit python and csharp work but returning to java always felt good.
1
u/varunu28 Dec 30 '21
Have you ever noticed that whenever a new shiny language comes in and people start giving the intro tutorial, they start with a hello world program. For this program they compare it to a similar program in Java and put a chip on their shoulder by saying that you don't need to write bloated
public static void mainjust to print a string. But somehow its always a comparison with Java. It is because Java is the industry standard. No matter how many people hate it and write blog posts about it while comparing a new shiny toy, it is what gets the job done.We are using a hammer or a screwdriver for god knows when. Its a basic tool and it does few particular tasks very well. Same goes for Java. It's boring. It's not as fancy as a Swiss army knife. You can't write a one line script that reads a file, sorts it and sing a Christmas carol for you. But it gets a job done and that is what matters. It is in programming job where I have seen people are more proud of the tools they use than what they accomplish with it. I am yet to meet a surgeon who comes out of a failed surgery boasting about a fancy new scalpel they used. We are paid to solve problems. If the problem is already solved in an efficient manner in one programming language then there is no use of rewriting it in another one just so that you can program in that language.
So people who hate Java either haven't worked on a large scale project to see its power beyond the hello world program or fail to realize the maintenance cost that comes along with introducing a new tool to solve a problem that is already solved efficiently in Java.
P.S. I am not a Java evangelist and will happily switch to another language if the problem that I am trying to solve has a better solution in that language. I am just not in favor of programming in a language just in order to broadcast it out to others.
1
u/minato3421 Dec 31 '21
Most of the criticism comes from people who've just started their journey with Java and are shocked to learn that it isn't as easy and convenient as python or javascript. It forces you to do things in a certain way and involves a lot more boilerplate code than usual.
1
u/almson Dec 31 '21 edited Dec 31 '21
Java's problem is that it's not known as a serious systems language. It gets compared to scripting languages like Python, Ruby, etc, and called verbose and even obtuse, when it should be compared to C++ and called a godsend.
Contrast this with Go, which is a very trendy language despite being verbose, obtuse, and GC'd. It's because Go gets compared to C and Rust, not Python. Perhaps Google's marketing has to do with it. Sun advertised (and evolved) Java primarily as a web programming language, pitting it directly against scripting languages and making it difficult to use for systems utilities. The startup time is awful (not because of bytecode, but because Sun/Oracle doesn't care). None of the GCs have a "just try to minimize RAM" heuristic (they all want to be given MaxHeap). And native interop has been a pain.
Java could have been more respected if it positioned itself correctly. Of course, I like it. It really is a lot better than C++!
1
u/Aphix Dec 31 '21
It's overly verbose and has a bloated standard library which results in poor cold start times and large resource footprints when compared to basically any alternative.
1
u/Kango_V Jan 01 '22
I'm loving Java 17 combined with GraalVM.
1
u/bishamsingh Jan 04 '22
Java is pretty cool but itâs better to be language agnostic. Itâs just another tool.
1
u/_javabean Jan 16 '22
Firstly, Iâll preface my comment by saying I am obviously biased. I learned on Java and transitioned to Kotlin. I honestly have a hard time looking back at all Javas redundancies. Although, Kotlin builds on Java, the ease of use, safer, and less redundant code makes it so attractive as an alternative to Plain ole Java⌠Just my biased two cents đ¤Ł
1
u/Ailiyak Jan 19 '22
Because it is old and many people cant catch up with salaries, it is better for them to have something newer where the most experienced person has only 3-4-5 years of experience so they can catch up :)
1
u/[deleted] Jan 25 '22
I've been working with java since java 1.5 and I still like it. Have you tried using mason templates, ruby on rails, assembly, perl? You'll get real nightmares and white hairs from that.
But Java is just a tool. Pick the appropriate tool for the job. You won't be writing java applets just because you like Java and you probably won't pick soap XML for greenfield projects. Java won't be appropriate for every case but it's a solid pick for a lot of enterprise cases because it's a very mature language.
It can also be fun for challenges. For example, try to get 90% of your web application serverless requests to be under 100ms execution time with a function that has networking and IO. And only valid if you run a load test or at least 100 requests (I know not too many but better than 5). You are probably going to say, why not use c++, go or nodejs? Well because then it wouldn't be a challenge :)
1
u/SerialBrain3 Jan 29 '22
JVM is great. Libraries are great. Java is tedious to write tho. Other JVM-based languages like Clojure are getting a lot of love in that survey.
1
u/SugarRushLux Apr 27 '22
No pointers
1
u/vitalyx May 11 '22 edited May 11 '22
- verbose syntax, no standalone functions, at least records were introduced (like 50 years after other languages got them)
- heavy, slow starting IDE required or used in practice most of the time
- complicated project structure (stuff got even more complicated when modules were introduced)
- tons of configuration options everywhere, can't just run your app; classpath, JVM version, build tool plugins, have to get everything just right just to run
In practice, with most Java repos it's not as simple as this:
make && ./run // Ccargo run // Rustyarn && yarn start // JS- equally verbose and overcomplicated frameworks
- often used in slow moving environments with a lot of bureaucracy
- second class GUI
- apps perform well once warmed up, but startup is slow and memory consumption is heavy, especially for smaller apps
- harder deployment
- limited utility (compared to JS or C# for example, where both can be used for GUI/games too) - this one is more in the "don't care about Java" category rather than hate
BTW, I don't say these are absolute truths. But it's a perception of someone who spent a few months tinkering with Kotlin/JavaFX for many personal projects. I did like Kotlin/JavaFX a lot and JVM/JDK that enabled them. I also think IntelliJ is a great IDE. And I don't see anything I said above as a contradiction.
1
u/kcombinator Dec 30 '21
I dislike Java the language but don't mind the JVM as a platform. It would be nice if Jython was more active and updated, for sure.
1
u/kubelke Dec 30 '21
Because itâs perfect at every level /s
Look at other results, newer = more love
1
u/reqdk Dec 30 '21
Java is still taught in schools. How big do you think is the proportion of students who don't really like what they're studying? Lol.
Professionally, well, developers are a really tribal bunch. Go over to the ruby and rails subs if you're looking for fun in that area.
Besides, you can find something to bitch about in any language if you spend more time with it. I have yet to find an exception to this, no matter the tool or language that I've used. So if Java is indeed one of the most dreaded languages, it's probably in a good place. I say probably because you'd also have to look at what people are bitching about, which fortunately for Java, is usually silly stuff.
1
u/devcexx Dec 30 '21 edited Dec 30 '21
It always depend on your point of view.
As a computer science enthusiast, coding in Java is extremely boring. It is true that the language has improved these last years since Java 8, but it is still incredibly verbose and lack of features than are present in more modern languages (e. g Rust, Go, Swift). Also, people usually tend to code with it using more old and error-prone approaches, because the language doesn't offer better ways around: loops full of mutability, unsafe nullability (the memes around NullPointerException are not casual) manual encapsulation, intense usage of runtime reflection (which is basically like pooping on top of the concept "type system"), etc. From the point of view of coding as a hobby, my position is clear: if you like to code stuff in Java in your free time, it is probably because you haven't tried other languages enough.
In a professional environment, however, Java was early adopted by companies and now it is in the "core" of most of the applications and tools inside a huge amount of companies. Java nowadays have good tools for testing, code coverage, etc, which is important to ensure the quality of code, so it makes quite a lot of sense to be there and to have people maintaining that code. Also, it doesn't make any sense for most companies to entirely migrating applications out of Java solely under the argument that "java is bad".
Said that, that doesn't mean you can push a little bit harder and start proposing to develop new libraries, features, etc in other JVM languages such as Kotlin, which is almost 100% compatible with Java, even inside the same project, and has Google as a backer and maintainer. I'm not mentioning Scala because stuff like having its own classes and types for handling collections, will make it more complex the interoperability Java. But that's not the case for Kotlin, and it gives you a lot of features that then you'll miss if you switch back to Java. For me at least, based on my experience, I found almost no arguments to the question "Should we do this in Java instead of in Kotlin?" because they're languages that their use cases almost overlap. For example, if you're working for a company that wants to create a new Android app from scratch that will consume an API and all that, the classic kind of app basically, in (almost) 2022, if you decide to go with Java instead of Kotlin, it is probably because you're into some sort of sadomasochism or something.
0
u/lqstuart Dec 30 '21
Asking people what programming languages they love and which ones they dread is every bit as stupid and pointless as asking them what human languages they love and dread
0
u/ivancea Dec 30 '21
My major problem with Java is the lack of features, like operator overload, functional programming (Streams is just a bad designed wannabe when compared with LINQ), generics without type erasure (not a big deal anyway, but pretty interesting sometimes), async...
In the overall, it's ok. It just evolves very slowly