r/programming • • Mar 07 '24

"Java is here to stay": Popular programming language to remain on business hit lists in 2024

https://www.itpro.com/software/development/java-is-here-to-stay-popular-programming-language-to-remain-on-business-hit-lists-in-2024
994 Upvotes

577 comments sorted by

177

u/ninjadude93 Mar 07 '24

They surveyed java developers and java teams are these results surprising lol

56

u/Franco1875 Mar 07 '24

A far more compelling bit of research if the majority came back saying they hated it and wanted to move on tbf

16

u/nascentt Mar 07 '24

They get paid maintaining what they know. I know very few people that want to start from scratch with their job on the line.

9

u/s4lt3d Mar 07 '24

But someone has to support all that legacy code

13

u/ninjadude93 Mar 07 '24

The most compelling reason at this point was that white house memo that went out basically telling everyone to drop C/C++ in favor of java and rust lol

22

u/Sapiogram Mar 07 '24

Pretty much all C++ systems that could feasibly be written in Java (Or C# or Nodejs) were replaced 10+ years ago. I don't think the white house memo will convince anyone to move to Java.

10

u/Shawnj2 Mar 07 '24

The White House memo is much more focused on stuff like embedded software and the goal is to get people to move to ADA/Spark, Rust, and other memory safe languages rather than GC languages like C# or Java.

→ More replies (1)
→ More replies (1)

8

u/RScrewed Mar 07 '24

I think you think you made a clever point but you're suggesting they ask non-Java users whether Java is here to stay?

Wouldn't they want to ask the people using it if they plan on switching?

What's your alternative exactly?

→ More replies (2)

5

u/Altareos Mar 07 '24

only 440 of them too. the SO developer survey has tens of thousands more respondents and shows a steady decline of java usage. not that i think we won't still be maintaining legacy java code for decades, since some big companies seem to love their java monoliths.

→ More replies (20)

1

u/call_stack Mar 08 '24

Made up of mostly boomers lol

14

u/Franco1875 Mar 07 '24

Nearly two-thirds (60%) of respondents planning to add additional developers in the coming year.

Nearly half (42%) said their company plans to increase its tool budget and 31% said their annual tool budget (per developer) was $500 or more, marking an increase compared to the year previous.

Convinced at this point that Java is going to outlive us all tbh - a lot of chatter about Rust (because obvs) but the lingering popularity is quite something.

3

u/Rakn Mar 07 '24

Same. And I mean Rust is cool and all. But compared to Java it's basically non existent out there. I would assume that even more software is written in Go and even that pales in comparison. People have no idea on the amount of Java our there, as others have already said.

1.6k

u/bitspace Mar 07 '24

Fortune 100 enterprises make up a huge percentage of silent developers who go to work, build their things, fix the big old legacy systems that power much of the economy, then go home to their families. The vast majority of these people do their work silently without posting hot takes about how bad Java is. Java also makes up a massive percentage of the systems that these enterprises run on.

We just don't read about them here because they aren't doing meme driven development.

101

u/[deleted] Mar 07 '24

Am one of these people. Working for a finance company. We are working on countless modernization projects to sunset legacy systems. Our new microservice back ends are written in… Java. So are our legacy systems.

It is not going anywhere. It’s tried and true.

→ More replies (16)

205

u/belacscole Mar 07 '24

As a SWE at a Fortune 100 company myself, this is exactly it. Nobody in industry gives a shit what language is used where. You go there, use what the enterprise systems use, get paid, and go home. If you want to do some side project, sure go code it up in the latest hot new language out there. But no company wants to go rewrite entire systems just to use a newer language.

I see "C++/Java killer" constantly and Im just like sure sure id like to see the day when either of those actually become obselete.

→ More replies (18)

406

u/FieryPhoenix7 Mar 07 '24 edited Mar 08 '24

It’s always funny to me how so few people seem to realize how insanely ubiquitous Java is. Literally, governments, banks, schools, and all sorts of massive enterprises run on Java. And that’s unlikely to change any time soon.

Even Netflix is a Java house.

But sure, let’s continue to act like Java is this old tech on its way to oblivion. I’m sure the treasury department’s next project is going to look for the hottest and latest in the open source space.

112

u/PsychYYZ Mar 07 '24

treasury department

COBOL.

Source: Worked for multiple government departments, finance is almost always some arcane magic on a mainframe.

8

u/Dreamtrain Mar 07 '24

A certain client I worked with had their core legacy systems in COBOL but several new teams and business groups would interface with them through Java SOAP messages and I always crossed my fingers I didnt have to be the one to touch it, but I did end up having to retrace a couple bugs all the way there and understand some of their routines or whatever they called them, it wasnt fun at all

But yeah point is, even if the arcane magic is buried in COBOL, you're likely to find a lot of Java on top of it

→ More replies (22)

53

u/ascii Mar 07 '24

Java isn't even that old tech anymore. With a well designed lambda syntax, type inference, pattern matching, sum types, and decent APIs for functional programming, Java has become a pretty OK language.

30

u/ArcanePariah Mar 07 '24

While true, quite a few of the enterprise stuff is slow as hell to change, most of it is still back on java 7/8/11. At least 8 has some of the functional stuff.

15

u/thisisjustascreename Mar 08 '24

We're getting forcibly kicked off Java 11 this year because our internal Spring Boot wrapper framework is ending support for 2.7, and I'm totally in favor of it.

→ More replies (1)

6

u/_Stego27 Mar 07 '24

Luckily it seems once they get over the hurdle of migrating from 8, the migration to 17/21 is a lot less painful.

5

u/LogMasterd Mar 08 '24

Isn’t it really fast these days too?

0

u/[deleted] Mar 08 '24

[deleted]

→ More replies (2)

10

u/Chris_Codes Mar 07 '24

Almost as good as C#! ducks

0

u/[deleted] Mar 08 '24

[deleted]

→ More replies (5)

34

u/Schmittfried Mar 07 '24

Something can be old and still very common. Cobol anyone?

(Obviously Java is not even remotely as bad)

15

u/bwainfweeze Mar 07 '24

There are places where Java is eating COBOL's lunch.

People have been predicting Java will replace COBOL for quite some time. I still think they're right.

→ More replies (3)

6

u/LiveFrom2004 Mar 07 '24

You saying Cobol is bad?

44

u/lppedd Mar 07 '24

In case he doesn't reply, I'll say it: COBOL is bad.

6

u/argylekey Mar 07 '24

I have several friends who work for a credit union software company.

They have a As400/RPC translation layer and a Kotlin backend. Used to be Java. Weirdly their tiny company might be the most modern stack of most places like them.

5

u/Practical_Cattle_933 Mar 08 '24

AWS itself, one of google’s biggest language, apple cloud’s backend, and the whole of alibaba are all java.

2

u/Scottz0rz Mar 07 '24

3 billion devices run Java!

→ More replies (40)

40

u/daguito81 Mar 07 '24

Extra points for "meme driven development". But you are 100% right. And I would add thay a lot of places that have a lot of Java developers are creating new projects in Java as well. I work in such a place. So not even dealing with legacy stuff but brand new stuff as well

131

u/theEvi1Twin Mar 07 '24 edited Mar 07 '24

Totally agree. It’s really bizarre following the sub and being a career software engineer. I’ve worked at Fortune 100 company before the startup I’m at now and can confidently say every software person was extremely normal. Ironically, only a very few even played video games with most having different hobbies or into other things like watching sports. I honestly only knew maybe one other person that scrolled Reddit frequently but it’s really not popular to discuss at work. Same with talking about video games. I think the coworkers that played games would just lie and say they’re too busy for games. Even id say this sometimes. Workplace culture is so much different than college in this aspect.

That was really surprising when I got my first job but makes sense now. It takes a lot of work and discipline to become a senior dev working in an enterprise level code base. Code rewrites or taking risks on a new tech/language is not really a good decision at that level. Java is huge and widely supported. It’s also easier to find developers for it. All these things still make a solid choice despite newer tech or languages offering improvements.

Side note, I’ve always written c++/c but still encounter Java. Those tier lists or popularity lists posted here are always really skewed imo. C++ isn’t really fun to write a project in on GitHub but it’s extremely useful when developing robust software. Wish it was recommended more as a first language.

139

u/mfitzp Mar 07 '24

Reddit programming subs skew heavily towards beginners. You can see that with the amount of guff AI “taking all the jobs” stuff.

I’m old enough to remember when people said that about visual programming.

29

u/theEvi1Twin Mar 07 '24

Oh man, don’t get me started on the ai/ml thing haha. I think beginner or early career software devs are extremely focused on learning a language. When I started, I thought it was the only major hurdle I needed to overcome in order to be effective like the senior devs. ChatGPT or ai/ml coding apps look incredible because they can churn out code that admittedly can work. I could see this being extremely impressive to early career or management that thinks software is just learning a language.

Reality is I now spend less time actually writing code anymore and don’t really struggle with the language as much. However, c++ is something I could spend my whole career improving on even though I know enough now to build applications.

A majority of the time is spent designing and then figuring out how to implement and test that design or feature. When you add in constraints like memory utilization it only gets more complicated. I also may even spend significantly more time writing unit tests than I did writing the software they’re testing. If you’re able to tell ChatGPT how to do all this effectively you probably could’ve just written it yourself. I also think having a Frankenstein ai generated component codebase just sounds terrible to debug.

52

u/ChucklesInDarwinism Mar 07 '24

I work in Java and Kotlin and I think both are unstoppables.

I have the same feeling about reddit skewing a lot the actual status of the market.

I remember as well when SQL was going to make programmers useless as with it business people could tell the machine what they wanted.

The key is, rarely business or product know what they want without the engineers input.

→ More replies (19)

5

u/Desperate_Cold6274 Mar 07 '24

This. Unfortunately I only have one like to give to your answer but what you say is very true (and it sometimes annoying when you ask something on some area that you want to learn more and at some point, after you read a considerable large amount of material stemming from the most voted answers you realize that you are very off-track).

7

u/Fyzllgig Mar 07 '24

There’s always something coming to be a Luddite about. AI isn’t coming for my job anytime soon but that’s because I’m well into my career as a software engineer. I’m happy to use it as one more tool in my kit, though.

It’s a good time saver for things like documentation or knocking an RFC into shape from my rambling outlines of a system or feature.

22

u/mfitzp Mar 07 '24

This isn’t about being a Luddite, it’s about the next big thing(tm) always being oversold for what it’s capable of. Then hype hits reality & you end up somewhere in the middle.

People with experience recognise that pattern, and temper their expectations, because they’ve seen it before. Beginners haven’t and are more susceptible to get swept along.

No hate, by definition we’ve all been there before.

→ More replies (5)
→ More replies (1)

20

u/filesalot Mar 07 '24

Just think how lucky we are that Java was in the right place at the right time to take over the COBOL role, rather than C++. The world owes James Gosling a debt of gratitude.

5

u/Dreamtrain Mar 07 '24

I think it was mostly in thanks to their focuses, C++ has had its sights set on low level systems, Java by nature cant compete with that and so its focus was to solve things on the business side of things, wasn't perfect things like EJB are hideous but things like Spring Framework really helped cement its place

5

u/LiveFrom2004 Mar 07 '24

lol it isnt luck. It was deemed to happen when the tech was ready for it.

9

u/DzejSiDi Mar 07 '24

only a very few even played video games

I still like and play video games. When I was 14 I was able to play 10-11h day after day during holidays. Nowadays I stare at screen 8h as a part of my job. Add checking news, some other informations, chating with people, some YT and it's already >10h of staring at my f****ng screen.

So yes, excluding more chores and responsibilities I also have (or want to have) some other hobbies that don't require being glued to a screen. /rant

→ More replies (4)

46

u/addvilz Mar 07 '24

Last I checked, the overwhelming majority of AWS was also built using Java. The platform itself, I mean.

30

u/rjcarr Mar 07 '24

Most all major web services are run using java, from amazon to google to netflix to twitter to ibm, etc. It's actually more of an outlier to not be running java.

The big exceptions are facebook and wikipedia and probably a few others (like reddit).

14

u/Schmittfried Mar 07 '24

Because much of the current Internet was written during Java‘s peak.

8

u/Practical_Cattle_933 Mar 08 '24

And because it scales terribly well. Garbage collection is almost a necessity for often changing code, and in that category other runtimes are not even competitors. Like, literally every GC research happens on Java, it has multiple state-of-the-art GC implementations, meanwhile C# has.. a single file for its GC.

It’s not a bad thing of course, but it’s just a different tradeoff. Java’s GCs scale to terabytes of heap size, which may very well be necessary at that scale.

→ More replies (4)

7

u/Birk Mar 07 '24

And all of Netflix. 2800 Java applications.

→ More replies (2)

13

u/bitspace Mar 07 '24

Yes, I think that's accurate. I know it was ~10 years ago, and I can't imagine it's changed much.

3

u/steveklabnik1 Mar 07 '24

There’s a lot of Rust in there these days. 

→ More replies (3)

14

u/aspartame_junky Mar 07 '24

meme driven development

Am surprised I've never heard this before, so appropriate

24

u/G_Morgan Mar 07 '24

It is amusing to me that after all this time the best program environments are probably JVM and .NET (honestly .NET Core was a huge game changer and resolved nearly every issue I had with .NET).

It amazes me that web development is still practically in the same place it was. Sure rendering is a little less suspect than it used to be but everything else is as painful and amatueristic as ever.

139

u/[deleted] Mar 07 '24

And they definitely arn't out there re-writing everything that isn't broken in Rust and destroying productivity while at it.

50

u/MrChocodemon Mar 07 '24 edited Mar 16 '24

No, I am out there re-writing everything that isn't broken in Java and destroying productivity while at it.

Edit: I am not joking btw.
Currently I am completely rewriting a project to have the same functionality as the existing one (perfectly working one), but without camel routes, because the new tech lead dislikes them.

9

u/Captain_Cowboy Mar 08 '24

Show us on the doll where Rust hurt you.

36

u/Cuchullion Mar 07 '24

Same with PHP.

I've been a PHP developer for the past eight years, and I chuckle when people insist PHP is dying and is unused.

I've had a few jobs with PHP, get well paid, and I'll troll for new opportunities from time to time go see where the market is going- there's usually a large amount out there.

6

u/EvaUnitO2 Mar 07 '24

PHP is one of the few languages which actually make me angry but I still chose it for my personal website because I could get it up and running in a literal minute.

0

u/[deleted] Mar 07 '24

[deleted]

12

u/[deleted] Mar 07 '24 edited Apr 14 '26

What old posts? I used Redact to mass delete this post. You can also opt out of data brokers as well as all major social media platforms.

library merciful future deserve live cautious acorn fall governor wine

→ More replies (2)

2

u/falsedog11 Mar 08 '24

Yes, Vue3 has been a godsend. Doesn't have the huge community React has, and there are less libraries for it, but it's better in devx, performance, ease of use, design patterns, syntax and pretty much everything.

18

u/MR_Se7en Mar 07 '24

This is all I wanted when I became a dev. I just want to do the job, using the same broken language I learned years ago. Just leave me alone - the industry pays well enough, I just need to make it to retirement or until I lose my mind.

9

u/anengineerandacat Mar 07 '24

Sounds about right.

Java and C# are workhorse languages outside of C++ when needed.

The interesting part of the job isn't the coding part TBH, that's no different than assembling a box of Legos with the instructions instead being sequence diagrams.

It's the requirements gathering, solutioning, and trying to modernize or design something to replace code bases that generally just no longer have any SME's.

That's the challenging bit and subsequently the one where you learn the most.

That said, at least at my organization; Typescript and Angular have mostly taken over for UI related work (used to be mixed PHP and Java Freemarker templates).

PHP for 2024 is slated to be killed off within the organization, 2026~ will be when the last few web apps are replaced.

Which is IMHO great, Angular and Typescript ain't too bad so long as you have the compiler and linter configured pretty strict.

31

u/isoforp Mar 07 '24

Java isn't even a bad language.

24

u/vplatt Mar 07 '24

But it's good to hate on Java because... well, because it used to be slow! Yeah, that's it.

Oh... and um... garbage collection pauses! I knew this one guy like 10 years ago that had this, well... it was complicated ya know.

And then there's the getters and setters. Have you seen those? What a maintenance nightmare!

And... hey, are you going to the next unemployment conference?

Yeah?

Me too.

See you there!

9

u/badpotato Mar 07 '24

You forgot to mention that Maven still use XML instead of something like yaml or json... it's a huge deal.

5

u/vplatt Mar 07 '24 edited Mar 08 '24

Yes... it's such a YUGE deal... so huge.

Edit: Never mind. It's more "yuge" than I thought. See below on limitations on polyglot limitations:

https://github.com/takari/polyglot-maven/?tab=readme-ov-file#tooling

→ More replies (6)
→ More replies (1)

25

u/[deleted] Mar 07 '24

yup. the vast majority of devs probably have zero interest in thinking about development outside of work. they aren't concerned about the latest and greatest or being online 24/7

21

u/old_man_snowflake Mar 07 '24

eh, it's not zero interest, but it's more that my time is, frankly, more limited. I'm not a 20yo anymore, I'm in my 40s. I've seen languages and fads come and go. I've watched frameworks rise and fall. It's just not worth spending time away from my kids or family to deep dive on every tool or library or language that gets released. I'm more focused on how to solve the problems I'm tasked with solving. And those problems I'm solving now are quite a bit larger, more complicated, and much more expensive. Quite a few of us are in this kind of role. We're aware of what's going on, we're just not going to spend a lot of time on it until it looks like it might solve a problem we have. If you want me to use a new language, the syntax is barely a concern. I'm more concerned about all the other stuff -- how you'll test it, how you'll profile it, how you can debug memory issues, how you can inspect the state of a remote running process, etc etc etc.

13

u/drmonkeysee Mar 08 '24

Scott Hanselman from Microsoft calls them “dark-matter developers” because they’re invisible to the programming discourse and there’s orders of magnitude more of them than us.

2

u/Practical_Cattle_933 Mar 08 '24

“The silent majority”

10

u/Zellyk Mar 07 '24

meme driven development, good sir I will send you the hospital bill for chocking and almost dying.

2

u/ammonium_bot Mar 07 '24

for chocking and

Did you mean to say "choking"?
Explanation: chocking means to block a wheel, while choking means to suffocate.
Statistics
I'm a bot that corrects grammar/spelling mistakes. PM me if I'm wrong or if you have any suggestions.
Github
Reply STOP to this comment to stop receiving corrections.

→ More replies (2)

3

u/dr_fedora_ Mar 08 '24

I am one of them, working for one of the top 3 cloud providers in the world as a software engineer. we use JAVA for literally everything! if we dont use java, we use a language that runs on JVM such as Kotlin.

2

u/Levomethamphetamine Mar 07 '24

Right in the feels man, this is me..

2

u/Richandler Mar 08 '24

A lot of the online culture around this stuff is an, "I'm better than you culture." Or "I'm not happy so everyone must do what I want."

2

u/Extra_Progress_7449 Mar 09 '24

...Or they realize that no language is better than another....they are just good at one thing, that others cannot....vice versa

2

u/[deleted] Mar 10 '24

meme deriven development lol 😂

3

u/Schmittfried Mar 07 '24

It‘s also extremely mediocre and not much to talk about.

11

u/bitspace Mar 07 '24

For sure. Boring tech is reliable tech. People with 3 letter acronym titles (CEO, CTO, SRE) like boring tech.

7

u/hugthemachines Mar 07 '24

Customers also like reliable tech.

→ More replies (1)

3

u/shustrik_n Mar 07 '24

I’m one of them. We had legacy system shit tons years old, older than me, migrated it many times to each next LTS Java, now we are on Quarkus. Have hopes for project Loom in future.

Our customers are government, banking, telecom, and we never were run out of money, never on the edge “will we win investment pitch” . Yes we always do, even if we will show negative results this year - our customers so big and so integrated, that it will take them a year or more to switch to another provider of similar services. Some of services even does not exist without us, because we did very custom versions for some big companies, and we always have money for next 5 years. I never had overtimes or any pressure from my mgmt.

People can laugh about my job as much as they pleased, but I’m on unlimited contract, with nice salary and “golden parachute”. I’m all in for memes, but at the end of the day, I’m not fighting for place in next generative AI startup which orders you pizza based on your blood type sending 750 cv per week. One of my best coworkers just closes his laptop at 5 and going home to wife and kids, never answers after 5, best guy ever. He is going home to loving family, not to another 500 videos of person with weird accent explaining ML. Will I become ceo in silicone valley? No, probably not. Will all of people laughing at my “outdated Java” will become ceo of anything? I honestly hope so, good luck to them.

2

u/patientzero_ Mar 07 '24

same with PHP tbh

2

u/__loam Mar 07 '24

I've had the opportunity to write some kotlin recently and I think that's probably the future of Java development. It's a lot more ergonomic but also, critically, completely interoperable with java. You can call kotlin functions and use kotlin objects in java and vice versa.

1

u/Toby_B_E Mar 07 '24

I was a SWE at a Fortune 100 company and Java made up 95% of the applications that my team supported. And adding that 5% with a Python project was one of the last things I did before leaving.

1

u/anthonybsd Mar 08 '24

To be fair when people bitch about Java you usually find out that they are forced to be running some ancient version (5? 6?). Any modern LTS (17+?) with some decent syntactic sugar framework thrown in (like Lombok) and a decent IoC framework (Spring Boot, Micronaut, Quarkus etc.) is very pleasant to write and maintain code in. I've been going back and forth between C# and Java for the past few decades and the last 5 years I think I prefer Java for various reasons. If I were forced to maintain some ancient Java 6 app with godawful J2EE thrown in, I'd probably hate it too.

0

u/Serializedrequests Mar 07 '24

Happy to do that, knowing that our company needs to be on Java because it is safe and boring and easy to hire for, and still post hot-takes:

  • Spring is a language workaround.

  • Annotation driven frameworks are just dynamic scripting languages, but far far worse.

  • The java "community" often has stockholme syndrome for poor solutions that have become the industry standard, because they have never used anything else.

0

u/[deleted] Mar 07 '24

[deleted]

6

u/bitspace Mar 07 '24

I feel like I'm the only person in my company who keeps up with tech trends. It's frustrating for someone who likes to play on the bleeding edge.

4

u/Dropundead Mar 07 '24

My goal is to have a way to encourage people to play, but understand the business constraints that go into adoption of something. I work with both types of people and I feel the head-down developers have had their dreams crushed too often. But their dream had no viability to thrive in the company.

→ More replies (12)

70

u/sprcow Mar 07 '24

24% of respondents said they were using Java 8

RIP, comrades.

I wonder how many are stuck on 6 or 7 though.

5

u/rodrigocfd Mar 07 '24

My team was stuck in 7 until last year, when we finally finished the migration to 8.

We've never been so happy.

0

u/[deleted] Mar 07 '24

[deleted]

3

u/PancreasPillager Mar 08 '24

Boy if that ain't the truth. My last place was stuck on the same problem...couldn't even get the resources to move off of joda time lol

2

u/weirdcabbage Mar 08 '24

Haha, I recently removed all the dependency on joda. Java.time is superb replacement.

48

u/neontetra1548 Mar 07 '24 edited Mar 07 '24

Minecraft Java Edition and its openness and modability must live forever, as janky as it is. So I say long live Java. If Microsoft tries to move everyone over to Bedrock Edition it would lead to huge community backlash and loss of ability to do many things in Minecraft that make Minecraft what it is, that creators who promote Minecraft rely on especially, and that Bedrock edition will likely never support. It's strange to have such a big game have a prominent Java version, but I hope they continue to support it.

31

u/scratchisthebest Mar 07 '24

one of my favorite anecdotes is that the current state-of-the-art resugaring Java decompiler, Vineflower, descends from a long lineage of JetBrains Fernflower forks created internally within the modded Minecraft scene (fernflower -> forgeflower from Minecraft Forge, a modding group -> quiltflower from Quilt, another modding group -> vineflower), and vineflower has now found its way into professional Java frameworks like Quarkus. the game is not open source and minecraft modders spend a lot of time staring at decompiled code, so it makes sense we'd care about how it looks haha

i've also seen Tiny and Tinyv2, file formats for storing deobfuscation mappings developed by-and-for the modded scene, turning up in the Android decompiler JADX

→ More replies (1)

7

u/Cachesmr Mar 07 '24

This situation will never happen, because bedrock players have been the (way) bigger majority of Minecraft players for years now. I do agree that the (basically non existing) modding api in bedrock is a absolute dog shit

2

u/neontetra1548 Mar 07 '24 edited Mar 07 '24

I'm not sure what you mean by "this situation will never happen"? That Java Edition continues to exist and "live forever" as I framed it? Maybe I misinterpret you though, but presuming that's what you mean:

I agree on a long enough time scale that seems unlikely that Java Edition will be around forever, but at least in the short and near term it seems like more bad community reaction and fallout than it would be worth to get rid of Java Edition. Yes there are way more Bedrock players, but in particular Minecraft content creators on YouTube etc. disproportionally use Java Edition and rely on its capabilities in order to produce the content they produce (either content mods or mods that help with production like Replay Mod, etc.).

Over time Bedrock might be able to meet more of these needs, but it's a lot of scope of needs to meet (and new mods and things people do on Java Edition is always changing) so it will likely be a long road. And in the meanwhile if they decided to pull the plug on Java their biggest evangelists the content creators who help make Minecraft popular and define the public narrative around Minecraft (either positive or negative) wouldn't be able to produce content as they've been able to produce it, would be really mad, and possibly quit. It would be pretty damaging if they tried to pull the plug on Java Edition now. Maybe that will change in the future, but there's a lot Bedrock would need to do to get to that point where getting rid of Java Edition wouldn't be a PR disaster that hurt the Minecraft content community significantly. Minecraft users and content creators get upset at tiny things and precipitate bad negativity cycles already. Depricating Java Edition and hurting all creators like that and their ability to produce content that promotes Minecraft would cause a crisis.

Not sure if this is true or not, but I've also heard Java Edition is preferred for Mojang internally for easier prototyping and development of new features which might be another factor.

2

u/Cachesmr Mar 07 '24

I highly doubt Java is going to get ditched before bedrock has modding API parity. I do know for a fact bedrock has priority by Microsoft, it's a gigantic cash cow. As for DX, I have no idea... I've interacted with a decent bit of mojang people and never really heard anything of the sort.

2

u/Chii Mar 08 '24

bedrock players have been the (way) bigger majority of Minecraft players for years now.

i find that hard to believe. May be true if you count xbox players as well?

3

u/Cachesmr Mar 08 '24

Mobile alone has a bigger playerbase.

2

u/Practical_Cattle_933 Mar 08 '24

Minecraft is janky because it was written in a shitty way, not because of Java.

151

u/klekpl Mar 07 '24

Because Java - contrary to what vocal minority is saying - is actually a really good language, runtime and ecosystem. It is performant, has world class tools, libraries, frameworks. The language since v 17 is really nice and getting better with each release. Observebility capabilities are outstanding and not comparable to anything else. Build tools (ie Maven) - while not state of the art - just work and are reliable - anyone experienced with npm or pip shitshow finds working with Maven a pleasure.

Virtual threads and structured concurrency make it a great platform for multithreading.

Valhalla is coming.

The only downside is that Java libraries are not reusable outside JVM - I would love to use some in Postgres extensions for example.

50

u/puddlypanda12321 Mar 07 '24

Maven really gets the job done. I never how easy I had it until I tried maintaining a Node.js application.

→ More replies (2)

7

u/NoxiferNed Mar 08 '24

Pip and npm are shit but cargo makes maven look pretty bad tbh.

3

u/klekpl Mar 08 '24

Cargo is pretty good but for me the deal breaker is lack of anything comparable to:

https://github.com/qoomon/maven-git-versioning-extension

Secondly: Maven due to its extensibility via plugins and vast ecosystem can be used for various configuration management tasks beyond build.

To be honest - I am now lurking at Nix with Flakes as a go to solution for dependency management as I think it should be decoupled from a particular language ecosystem.

6

u/shoot_your_eye_out Mar 07 '24

anyone experienced with npm or pip shitshow

First, every package manager I've ever used is a bit of a shit show, probably because on some basic level, it's actually pretty damn hard.

Second, `pip` is a lot less of a shit show than `npm` or `yarn`. I've been madly updating both `npm` and `pip` packages in a legacy app. The `pip` stuff is pretty straight-forward. The `npm` stuff can easily take days or more due to how `npm` allows multiple versions of the same package.

6

u/wildjokers Mar 08 '24

Second, pip is a lot less of a shit show than npm or yarn

Except that python uses global libraries and it is a complete shit show. Have to use conda, venv, etc to work around it.

2

u/shoot_your_eye_out Mar 08 '24

I've never found `venv` difficult, and once it's dockerized it's not a big deal anyway. I'd much sooner deal with global libraries than multiple versions of the same library, any day of the week.

→ More replies (2)
→ More replies (1)

2

u/tekumse Mar 08 '24

I bet that the percentage of Fortune 100 companies that use Java 17+ is close to zero. Pretty much everyone I have talked to is on 11 or even 8.

3

u/klekpl Mar 08 '24

Actually I work for one of Fortune 100 companies and Java 8 is absolutely niche, almost all Java software is on 17 and teams are looking at 21 now. I expect gradual but smooth migration to 21 soon.

2

u/Kache Mar 09 '24

I think the good parts of Java can be quite good, and many language QoL's are getting addressed, but there is just sooo much cruft and "Enterprise FizzBuzz Java-isms" that I find really distasteful.

Also predominantly encountered heavy GUI applications and difficult-to-automate workflows in those contexts, which I don't enjoy.

→ More replies (5)

116

u/PatriotuNo1 Mar 07 '24 edited Mar 07 '24

Most legacy projects which use Java in most cases are still using old frameworks and old Java versions which lack many useful functionalities. I don't know who wishes to work on those projects.

I only enjoy Java because Intelij Ultimate and Spring Boot exist in this universe. And the fact that Java 21 already matches or even surpasses other languages in terms of performance.

30

u/jackstraw97 Mar 07 '24

Just give it time. In 15 years people will be on this sub and r/ProgrammerHumor bitching and memeing on the awful legacy Rust and Go apps they have to maintain at their jobs. And others will defend the languages and say “well, it pays the bills!” just like Java devs do now

7

u/zabby39103 Mar 07 '24

There's a lot of stuff you can do to old projects without changing the framework entirely. I cleaned up a lot of the code with mapstruct, lombok, google guava, newer versions of apache commons stuff etc.

I don't mind legacy, I like the idea of my code lasting for 20 years... feel like I'm carrying on these guy's legacies haha. Maybe I don't know what I'm missing... but I dunno I think the fact that the majority of our code base hasn't had to be completely overhauled is a major selling point of java?

5

u/PatriotuNo1 Mar 07 '24

In most cases the problem is ... management. The fact that they refuse to migrate to something new because why bother. I came across a project where we had to define JPA entities via XML only. Because this was the convention, it didn't matter that this methodology is prone to errors and reduces readability.

If you have the power to change things yes, it is a different story. But if the project is in the same state for too long and the management is resilient to change then it is a red flag for me.

→ More replies (2)

3

u/Skellicious Mar 07 '24

I hate it but you're spot on.

Spending more and more time on a new spring boot project has sparked up my interest in programming and motivation for work.

1

u/fringe_class_ Mar 08 '24

What makes Intellij Ultimate worth it over CE?

1

u/bmiga Mar 08 '24

Plenty new software being built in Java.

→ More replies (12)

40

u/savage_slurpie Mar 07 '24

I really don’t get the Java hate at all.

With a decent IDE the devx is pretty great.

32

u/crozone Mar 07 '24

I think there's two main sources of hate:

  1. C# developers that see it as a worse C#

  2. People who meme on OOP being terrible.

Java ecosystems (libraries etc) do tend to be much more classic OOP in style with lots of boilerplate. For the OOP haters, Java is the epitome of the problem. For the C# devs, it seems overly verbose and about 15 years behind in language features.

8

u/MoneyGrubbingMonkey Mar 08 '24

As a C# dev, I agree, I'm the problem

Don't really hate Java, I just meme on it a lot because it's so easy to do

3

u/crozone Mar 08 '24

I am also the problem. Professional C# developer that occasionally has to write Java and Java definitely sucks compared to C#.

20

u/Free_Math_Tutoring Mar 07 '24

I've got relatively little against Java, except for its extreme verbosity in some cases.

My problem is with the all-to-common (in my experience, of course) Java Developer Mindset of "if it doesn't have three layers of indirection, it can't possibly be a good solution".

Now, that's not literally how they're thinking about it, but it is, in effect, how they are writing code.

The worst was a coworker who once wrote two Implementation classes, an Interface and a Fake for tests to return a static string. A string literal. Whose value never changed. And was used in exactly one place. Wasn't loaded from config or env. With absolutely no reason to believe that this string would ever change. And with no foreseeable reason for any of the involved classes to grow.

This is an extreme example, but things along those lines are common.

9

u/wildjokers Mar 08 '24

"if it doesn't have three layers of indirection, it can't possibly be a good solution".

This is very true when it comes to database abstractions. Java devs make a sport out of how many layers of abstraction can be piled on top of the database. (as a java dev this drives me bonkers)

11

u/savage_slurpie Mar 07 '24

Sounds more like a problem you have with how a specific coworker codes.

Not like using a different language would stop that.

7

u/Free_Math_Tutoring Mar 07 '24

Oh, yeah, absolutely. In fact, the coworker in question didn't even write this example in Java. It was Python! (We used both on the project).

But he always kept ranting and ranting and ranting about how much better Java is than anything else, so I'm lumping him in with the Java Mindset. And I've seen this exact mindset (conflating simplicity with stupidity, not feeling superior) from several other people who evangelize Java.

13

u/drink_with_me_to_day Mar 07 '24

Java hate comes from ridiculous verbosity, needlessly strict OOP, and ugly GUI desktop apps

4

u/we_are_mammals Mar 08 '24

ugly GUI desktop apps

They aren't just ugly. They feel laggy for some reason, despite JIT, or maybe because of it.

4

u/Practical_Cattle_933 Mar 08 '24

Intellij is not laggy at all, though. You probably just don’t recognize the good java GUI apps as java, but only the bad examples.

→ More replies (2)

4

u/Practical_Cattle_933 Mar 08 '24

And then people love Go, which is objectively more verbose.

3

u/ixis743 Mar 07 '24

Early Java exemplified the OOP craze of the late 90s: massive class hierarchies, bloated frameworks and slow, insecure programs that rarely ran correctly ‘everywhere’ without extensive debugging.

But the biggest damage was caused by the introduction of JavaScript, an awful language that has nothing to do with Java but stole the name for brand recognition.

Java and C# are basically peer level at this point, but one is seen as a joke by most of the industry (outside of the server side) while the other is widely lauded as the best programming language ever developed. Names matter.

2

u/Deltazocker Mar 07 '24

As someone who uses both: I really couldn't tell you which I prefer. Both are really good and nice to work with, both have fairly good support. At that point it's just that some features are a bit better in one or the other.

3

u/ixis743 Mar 07 '24

You mean Java and C#?

→ More replies (1)
→ More replies (1)

24

u/amakai Mar 07 '24

Java is not as much about the language itself, as about the ecosystem. No other language has such a large variety of production ready frameworks and libraries.

74

u/humanitarianWarlord Mar 07 '24

Java is still my favourite language of all time, along with C++.

Idk why but I've always found it incredibly satisfying compared to other languages.

Plus I've never had a problem with the error messages, idk why so many people complain about them. JS and python error messages can be so much worse.

16

u/KagakuNinja Mar 07 '24

I still remember page long C++ errors from leaving off a > in a generic.

3

u/recurrence Mar 07 '24

I still see these in rust; they still exist :)

9

u/Tman1677 Mar 07 '24

I mean I hear you, and Java has come a long way, but c# is essentially objectively better.

→ More replies (5)

4

u/jaybee8787 Mar 07 '24

I quite love Java! ♥️

5

u/[deleted] Mar 07 '24

I’m in the same boat as you. I like using Java and C++. Never enjoyed using JavaScript or Python. Never really tried the other languages. The only one that sort of intrigues me is Rust

3

u/BlurredSight Mar 07 '24

Python is nice when you're forced to use it and everything you need to do is done for you.

But when I started building in F# I wanted to kill myself because even basic string validators and manipulators take 10-11 second to build and the syntax isn't crazy intuitive.

→ More replies (1)

4

u/eldelshell Mar 07 '24

Once you understand Java stacktraces it's really easy to figure out where things went wrong

Maybe those who complain are about some framework. I remember Spring errors to be quite hard to follow sometimes.

Today I'm doing mostly Quarkus and haven't had any problem reading a stacktrace.

1

u/Halleys_Vomit Mar 08 '24

Plus I've never had a problem with the error messages, idk why so many people complain about them.

Wait, what? I thought the detailed error messages were one of the draws of Java.

1

u/rjcarr Mar 07 '24

Agreed, Java is probably my favorite, but there are things I don't like. If I need to do anything quickly, and is mostly ephemeral, I use python, and especially like how you can add type hints now. And I actually enjoy javascript as well, since you can mold it into almost any style you'd like.

But if I'm doing anything large and "serious", then yeah, it's hard to deny that java is the best (note I don't have much experience with other large enterprise languages like C#, C++, or even Swift).

1

u/amplifyoucan Mar 08 '24

Same. People talk like it's ancient - I helped decide the tech stack for our startup 2 years ago and Java was just the obvious pick for our server logic

0

u/[deleted] Mar 07 '24

[deleted]

8

u/Randolpho Mar 07 '24

I don't mind Java, but I do prefer C#. Far more syntactic sugar, to the point where I'm becoming a syntactic diabetic.

That said, although C# keeps coming with new and interesting language changes, it's getting a bloated standard library/API that needs trimming.

Something Java also suffers from.

→ More replies (6)

3

u/humanitarianWarlord Mar 07 '24

Eh, they're both very good languages, but vanilla boring ol java has a special place in my heart and i just have more experience with it than C#.

If I had more experience with C#, it might be my favourite, but for now, it's java.

10

u/Healthy_Razzmatazz38 Mar 07 '24

Java's kinda hit this steady state where its 3-5 years behind the cutting edge, but it takes longer than that to convince someone to rewrite a multi million line pile of business logic in a new language and then do it.

So its never really worth switching because eventually java gets it right, just late. I could see go being the choice for new systems over time, but if you have a bunch of senior devs who have been working on java for a decade theres a real cost to moving to go.

7

u/Practical_Cattle_933 Mar 08 '24

The funny thing in language design is that “the cutting edge” is 30 years ago ML :D people just believe that it all happened with Rust for some reason.

3

u/wildjokers Mar 08 '24

Java's kinda hit this steady state where its 3-5 years behind the cutting edge,

The java architects have stated they do this on purpose so they can see what works and doesn't work in other languages. They take backward compatibility seriously so they want to get the syntax right.

2

u/Sosseres Mar 07 '24

Any current application you just want to leave there until the technical debt and new requirements starts breaking it. The people that wrote the business logic no longer work at the company, so nobody in business wants to start a project to redefine it. They want to work on logistics, finance, marketing or whatever they were hired to do. So long as the application allows for addons for new tech on top of the logic they are happy enough that there is no financing for large projects.

19

u/tamalm Mar 07 '24

Java passed 1BRC under 2 sec. Java will stay forever. My grand children would see how I developed a Java 1.6 app since 2008 GFC and managed to upgrade to 1.8 and then to 1.11 during Covid and battled to run it in 1.17.

33

u/ByerN Mar 07 '24

Idk what would have to happen to let Java go away. Even Oracle with their dubious business practices couldn't kill it for years.

2

u/wildjokers Mar 07 '24

Even Oracle with their dubious business practices couldn't kill it for years.

Oracle has been an outstanding steward of Java and probably saved the language.

8

u/fireduck Mar 08 '24

I write new code in Java because I like it. AMA.

23

u/fijaejifepsplkdfjjwe Mar 07 '24

I absolutely love java and would even take it over kotlin.

17

u/scratchisthebest Mar 07 '24

Some of Java's recent ergonomics have been slowly eroding the reasons to use Kotlin, I think, like instanceof pattern-matching and records. Kotlin's features are more fancy and powerful but many times you don't really need the fanciness.

4

u/PancreasPillager Mar 08 '24

When it comes to pattern matching, java has actually surpassed kotlin

→ More replies (1)

9

u/Zemvos Mar 07 '24

Agreed. Kotlin just makes it easier for those familiar to write, but harder for everyone else to read.

5

u/Dreamtrain Mar 07 '24

Was there any doubt?

5

u/TinySection7 Mar 08 '24

I've been hearing 'java is dead' to be replaced by the better thing (tm) since the 90's..

11

u/paralio Mar 07 '24

Java is, by far, the best ecosystem I worked with for backend development.

0

u/Proper_Hedgehog6062 Mar 08 '24

Because you haven't tried c# asp.net core 

→ More replies (3)

4

u/0xffaa00 Mar 07 '24

Ada is here to stay as well.

And Fortran is being used at the current Black Mesa Research Facility (real world analog) to do cutting edge public funded science

4

u/rtds98 Mar 08 '24

java is cool. always was. not going anywhere anytime soon.

3

u/Inprobamur Mar 07 '24

It has gotten much faster than it was.

2

u/wildjokers Mar 08 '24

Every JVM release has performance improvements, this is true. However, that is true of most any software.

2

u/Inprobamur Mar 08 '24

It's just surprising that you can, for example, take a game built on LWJGL framework in Java 7 and switch it out with Java 23 and get around 40-60% more fps just like that.

3

u/[deleted] Mar 08 '24

Java is much better these days. With Virtual Threads (fibers) and Generational ZGC, there's little reason to use Go.

Java 21 finally added some formatting niceties like multi line strings and pattern switch case. 

It's not a sexy language, never will be. But it does the job without a ton of warts like JS and Python have. 

3

u/DeliciousIncident Mar 08 '24

"Here to stay" implies that the author wants it gone. Why? It's a pretty decent language, I quite like it myself.

3

u/lmyslinski Mar 08 '24

As Java dev that has been coding in anything but Java last few years, I miss a ton of stuff from Java that make building really large, complex software projects that much simpler - structure and naming conventions, package scope visibility restrictions etc. And don't get me started on type safety... lack of strictness is great for moving fast, but once I want to have things stable I really want my code to not compile/run when I'm passing in wrong arguments etc.

I'm pointing at you, Python and TS - everywhere I look, each project looks different, it's not trivial to set up for reliable production use & still have no idea how to split my code properly to keep it clean

3

u/[deleted] Mar 12 '24

Java is still a great language I think. For JVM server side software development, Java is still a reference that we all use to understand what the code is doing in the JVM regardless if we are using Groovy, Scala, Clojure, or Kotlin. We always get to want to decompile the byte code to see what the code is actually doing and that gets always translated back to Java which ultimately is still the "real deal" in the JVM still. And with further technological advances, no matter how much I enjoy Kotlin, Java will always stay and I really don't want Java to go. I think it only adds to our brain power, being able to code in different languages and I don't think Java has any kind of blocking issue with it. Most people who criticize Java tend to use a lot of arguments against Java but when everything gets broken down to what matters, the justification usually boils down to not liking the "Java style" and style isn't the most important software engineering discussion.

17

u/PulsatingGypsyDildo Mar 07 '24

Who could imagine that having billions of devices using a semi-crappy technology would ensure that this technology would remain viable over decades?

Really? I work with C/C++ that is older. And only Rust did a somewhat decent attempt to make this domain safer.

Why would you expect Java, a better suited language for its niche, to demise faster?

7

u/Envect Mar 07 '24

Because C# exists.

2

u/HurasmusBDraggin Mar 08 '24

Was there any doubt?

3

u/Snakestream Mar 07 '24

Bro, financial industry is still running FORTRAN and shit. Java isn't going anywhere.

4

u/knobbyknee Mar 07 '24

Just like Cobol.

5

u/pron98 Mar 07 '24 edited Mar 07 '24

Cobol's success was relatively short-lived, and it was never as popular as Java (or Python or JS, for that matter). Languages that more resemble Cobol's adoption graph are not so much JS/Java/Python, but perhaps Ruby or PHP. Java/Python/JS may be closer to C in that regard, but even that may not be a good analogy.

2

u/Zemvos Mar 07 '24

Not quite. Writing a new stack today in Java isn't unreasonable. Doing it in COBOL though, probably is...

2

u/fire_in_the_theater Mar 07 '24 edited Mar 07 '24

i mean cobol is apparently here to stay too

1

u/collin2477 Mar 07 '24

lol is this supposed to count as news

1

u/bobbane Mar 07 '24

Don’t say “business hit list” really fast and sloppy or you will be misunderstood in a NSFW way…

1

u/uniquelyavailable Mar 07 '24

i like java, its got its quirks, but i still like java and i still use it

1

u/dr_fedora_ Mar 08 '24

of course its here to stay. its THE MOST popular programming language by major enterprise and FANG. most backends of cloud providers is written in java. all android apps (although written via kotlin) are running on JVM.

1

u/[deleted] Mar 08 '24

Specifically Java 8

1

u/[deleted] Mar 08 '24

The problem with modern code and architecture is...you literally need to start from scratch with it while adopting business process from legacy one, which is almost impossible in timeline....so yeah java will live.

1

u/[deleted] Mar 08 '24

Java is sweet & all but I'll stick with the easy legend of a programming language that is Python.

1

u/[deleted] Mar 08 '24

Java, what is this futuristic sorcery? I only program in C.

1

u/gxcells Mar 08 '24

Why JAVA still number one whereas all programmers hate it and say it is a shitty language?

1

u/jcs090218 Mar 09 '24

I hope I can get a Java job. Unfortunately, no chance at the moment. :(

1

u/JigglyWiggly_ Mar 09 '24

Still no unsigned types... How people can prefer Java over C is just weird.

1

u/EnigmaticSoul_28 Aug 14 '24

I'm a beginner and want to learn Java from scratch. I've come across Java SE LTS releases like SE 8, SE 11, SE 17, and SE 21, but I'm not sure what they are or which one I should start with. As a college student, I have no idea where or how to begin. Is Oracle University a good place to start where I can also get certificates? What’s the right way to learn Java? Should I even learn Java now, or would you recommend starting with something else? Any advice would be greatly appreciated!

1

u/imaginativename Mar 07 '24

Java is great, but..

Unpopular opinion, I really like groovy. Elvis operators - seriously. And what about spock? Is there a better testing framework? I can do with groovy in 2 days what would take a week in Java.

If loving groovy is wrong, I don’t want to be right

1

u/wildjokers Mar 08 '24

I really like groovy

I was always fond of groovy when working with the Grails framework. Also still use it for Gradle plugins. Just don't overdue it with the dynamic typing. It has some really nice features I miss in Java (default/named parameters being the biggest).

1

u/Practical_Cattle_933 Mar 08 '24

I actually also really like groovy.