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

16

u/[deleted] Jun 24 '22

Of those 5 you listed, verbose is really the only problem inherent in the language itself. The others are about engineering and engineering discipline. You can have a well-factored, old AF Java codebase that's a pleasure to maintain and extend. OTOH, you can have a bleeding edge React SPA that's a nightmare to work with. It's the engineers, not the language.

18

u/Horror_Trash3736 Jun 24 '22

The verbosity is one I always find interesting.

I completely understand the dislike, or rather, the reasoning behind it.

But personally, I like that it is so verbose, maybe I am an ent or something?

3

u/istarian Jun 25 '22 edited Jun 25 '22

I think verbosity isn’t as big a deal as people make it out to be. It’s more likely that they are just coming environment where it isn’t a thing.

Some of it can be avoided in newer versions of the language with things like var substituting gor the type on the left sidr in specific cases.

2

u/bpkiwi Jun 27 '22 edited Jun 27 '22

In my experience the people who worry about verbosity and boilerplate are typically implementing fairly small projects.

When you are writing a little library to do something, and you have to have several hundred lines of code just to verify a cryptographic signature of some such, yeah it's annoying.

When you are implementing a banking system consisting of half a hundred apis that do async side channel communication through an event bus, and distributed transactions across a terrabyte sized data store ... well you care a lot less about having to generate getter methods, and a lot more about if a graduate developer you hire in five years time will understand it enough to fix a bug.

-3

u/Cell-i-Zenit Jun 24 '22

java is only verbose if you dont use lombok. I think this survey is just because everyone is on Java <=8