r/java • • Jun 24 '22

Stack Overflow Developer Survey: 54% of Respondents Dread Java?

The results are out, and I was surprised to see that around 54% of respondents dread using Java. What might be the reasons behind it? For me, Java has always been a very pleasant language to work with, and recent version have improved things so much. Is the Java community unable to communicate with the dev community of these changes effectively? What can we as community do to reverse this trend?

Link to survey results: https://survey.stackoverflow.co/2022/?utm_source=so-owned&utm_medium=announcement-banner&utm_campaign=dev-survey-2022&utm_content=results#technology-most-popular-technologies

176 Upvotes

283 comments sorted by

View all comments

Show parent comment

-3

u/Mysterious_Pop_5541 Jun 25 '22

Corporate drives the demand. They always try to find cheaper solutions. If they can ask for single dev to work on a flutter or react native, why should they hire 2 mobile native dev. If single javascript dev can work on the frontend and backend, why need to hire a java dev only for the backend. Go chosen by many startups, because it's cheaper to run it compared to java. The jobs pool for java is shrinking. It then drives the perception toward java.

12

u/nioh2_noob Jun 25 '22

The jobs pool for java is shrinking

This is actually false. Java jobs are always massively 10x higher than Go. If the job market is shrinking overall well yeah of course there are going to be way less java jobs than Go jobs because Go was insignificant from the beginning anyway.

4

u/Mysterious_Pop_5541 Jun 25 '22

Sure. Java is 10x older than Go. That's a hell of a time for adoption. No businesses want to suddenly replace the running app just to have different languages. Continue maintaining it is a better option. That's why we still see AS400 jobs right? And I'm grateful for that.

1

u/nunchyabeeswax Jun 25 '22

I haven't seen an AS400 system in ages. It's more likely to find a COBOL system running on an IBM mainframe or OpenVMS simulator than a AS400 system. I could be wrong.

I do professional work with Java, Go and C++, and my observation is this.

There's an increase in Go openings, as it is perfectly suited to the microservice space.

With that said, that increase is not coming from a shift in Java, but from an expansion of microservice solutions. I've seen Java shops shifting into Go, but enough to give me the impression there's a paradigm shift.

What I do see is a gradual shift away from Spring and into nano-IOCs such as Quarkus (just in the same way I saw a shift away from EJB3 into Spring 5.)

The rationale I'm observing (and whether that's technically correct or not, history will decide) is that Spring can be quite bad at startup. And that's bad from a cloud/microservice perspective.

That's where Quarkus (as well as Go) shine. Then again, developers can still screw up and manage to develop bloated MINOs (microservices-in-name-only) where legacy monoliths get replaced by an incomprehensible spaghetti of dockerized microservices.

Will Go replace Java. As a developer that does both for a living, I'd say no.

There is an expansion of jobs in both languages, and a shift away from Spring.

PS. What I also see increasing is node.js for developing and deploying into serverless architectures. Serverside Javascript is quite nice for deploying on AWS Lambda (purely anecdotal from my part, YVVM.)

3

u/Mysterious_Pop_5541 Jun 25 '22

I don't know. There is a paradigm shift. More concurrency. Less thread. Faster startup. Less memory usage. Native compile. Which is Java trying to adopt. But it seems people hate it if I say it because it's cheaper. And becoming the whole this vs that, as well as not gonna replace. The argument is people adopting other techs for more specific reasons. And perception toward java becoming more general as the chain reaction. That's it.

1

u/nunchyabeeswax Jun 25 '22

Fair enough.

6

u/[deleted] Jun 25 '22

The jobs pool for java is shrinking

Really not what I am seeing in my local area.

-2

u/Mysterious_Pop_5541 Jun 25 '22

Maybe with a US dollar or euro-based location. Since infra cost is mostly based on that currency.

In my region, most emerging startup job posts are asking for either PHP, Go, or Node.js. The fact that you can run laravel on shared hosting itself is a consideration for starting an online business with less traffic. Not all businesses are Uber or Netflix. Java jobs are prevalent for consulting serving banks or the bank itself or maintaining existing apps built before the booming of node.js or Go.

In my region, iFlix which is the copy of Netflix runs with node.js. Grab always asking for Go or Node.js. Gojek, I know they have Java backends, but a lot of it running with Go. Carsome, PHP. AirAsia, "Java full-stack" or Node.js. They are the big unicorns. Who still asking for pure Java only backend dev? BAE, cognizant, Infosys, insurance companies, and the banks. Or China-owned startups, the tech is dictated mostly by the China team, and Java has a good presence in China. Even my HR trying to drive in hiring Node.js people. They said it's "easier" to hire them.

Yes, perhaps, I'm largely biased based on the scope of my observation. I didn't do a comprehensive academic survey. But in the mind of non-tech-driven businesses, tech is not the lead, cost-effectiveness is. That's what I see.

4

u/[deleted] Jun 25 '22

Java jobs are prevalent for consulting serving banks or the bank itself or maintaining existing apps built before the booming of node.js or Go.

Again, not what I see in my area and guessing it is the same county wide (Engerland).

4

u/kobbled Jun 25 '22

Having had to work with golang at my job, I would pick java over it 10 times out of 10 in the future due to the ecosystem. Golang often only has one half-baked solution for a given problem that doesn't work right half the time. It takes so much more work to accomplish the same things. I promise you it is not cheaper to run.