r/learnjava • • Feb 22 '24

Java is very present but not popular?

If someone outside the field tries to decide which language to learn, and looks at videos from some tech influencers, they might get the impression that Java is dying out and that it's very bad language. This was my impression when I was deciding what language to dedicate to. Now I see that Java is very much alive, and there isn't any indication that it's going to be replaced by some other language. Anyone has the same impression? Where this discrepancy stems from?

204 Upvotes

151 comments sorted by

View all comments

111

u/[deleted] Feb 22 '24 edited Feb 23 '24

It stems from new students following the latest hype train, without any experience in the industry. Java ecosystem is live and well.

Also startups are sexy and they are more likely to use a language like javascript or python because they are trying to develop fast and dont care about throughput because they dont have many users like large enterprises do.

39

u/Neckbeard_Sama Feb 22 '24

Yeah it's just hype.

I see Python/Go/Rust everywhere nowadays.
The reality in my area is that Java/C# jobs outnumber Python/Go positions multiple times and Rust is pretty much non-existent.

9

u/Noah__Webster Feb 22 '24

I seem to see a ton of Python jobs as well. I think it is somewhat hyped, but I also think it gets a disproportionate amount of content around it because it kinda feels like the default "beginner" language, imo. If you're self teaching, there's a very high chance you go with Python. It's touted as one of the easiest languages to learn, if you have zero knowledge, the syntax looks way more approachable, and there's also kind of a feedback loop of there being lots of content so more beginners choose it.

11

u/K3dare Feb 22 '24

There are tons of python jobs because the IA/ML ecosystem is massive and booming everywhere.

Also in some other domains it’s also the dominant language, for example in the network automation domain.

3

u/SystemsSurgeon Feb 23 '24

I consider it the powershell of Linux.

Yes, Linux has powershell, but how powershell is for Microsoft, I view python as for Linux

Some may debate on both of these languages and what the future beholds for both of them long term. Especially with OS’s integrating more and more.

0

u/[deleted] Feb 24 '24

[deleted]

→ More replies (2)

7

u/RajjSinghh Feb 23 '24

It's also the language non-CS students use. Numpy and Matplotlib are great for what they need to do, the syntax isn't daunting, you can be competent enough in a few weeks. That's why science professors use python over anything else, and it works because they aren't doing real software engineering so it doesn't have to be the most robust thing in the world.

3

u/twotonkatrucks Feb 23 '24

Large part of it is due to the bleed over of numerical/statistical computing into the commercial world. There’s a large and matured communities around computational libraries for high level languages like python because that world was more or less silo’ed to academia (and commercial research labs) for years and almost no one produces code in languages like C# and Java in academic circles. I don’t think it’s wrong to say vast majority of all academic computational code is written in high level language (esp python or MATLAB) wrapper around low level libraries (BLAS/LAPACK) - python has just become the default preferred language of choice with emergence of numpy and panda. There’s just a robust community around python for computational libraries - including the currently ever popular LLMs/machine learning (see likes of spacy, PyTorch, most code you’ll find on aggregate communities like huggingface submit their code in python).

This world has more and more presence in the commercial world and they’ve adopted python due to robust support around computational computing built over decades.

5

u/FunkyUptownCobraKing Feb 23 '24

I do mainly Java but the companies I've worked with are all moving full steam towards serverless architectures and going for Python, JS/TS, or Go for better cold start performance.

3

u/4r73m190r0s Feb 23 '24

Serverless is just a temporary trend

2

u/lightmatter501 Feb 23 '24

Depends on where you’re looking for Rust. I see a lot of “C/C++ required, Rust experience desirable” as companies start migrations.

→ More replies (1)

1

u/CanvasFanatic Feb 23 '24

I’m replacing Java services with Rust services at work literally right now. Heads up.

1

u/[deleted] Feb 25 '24

I'm in the middle of nowhere, and even middle of nowhere wants Java/C#.

1

u/askdocsthrowaway1996 Feb 25 '24

Depends a lot on the company and the domain. My company builds custom software for server boxes and cloud infrastructure. So, we mainly use C/C++ for the data plane and GoLang for the control plane. If I've to hazard a guess, Python, Java, misc. contributes to less than 15-20% of our code base.

0

u/[deleted] Feb 22 '24

[deleted]

6

u/[deleted] Feb 22 '24

It becomes a cost thing at scale.

If you tried to build a AWS service in node.js for worldwide scale vs Java, it would probably cost 5-10x more in scaling costs. At scale, costs really do become significant.

5

u/JamieBobs Feb 22 '24

For my understanding, could you please explain why this is the case? :)

6

u/[deleted] Feb 23 '24 edited Feb 23 '24

A lot of it is because java can compile down to a bytecode .jar with the JVM, so it's not doing interpreting like JS is for each action.

Also Java has much much better multithreading and concurrency support so you can completely maximize all of your computer cores; multithreading in node.js creates multiple copies of the node.js V8 engine for each thread so it's very heavy.

2

u/JamieBobs Feb 23 '24

Thanks for this. I have been a backend engineer for 5 years now (mainly Go and Java) but I must admit the chink in my armour is infra/platform

→ More replies (5)

1

u/Karma_Source Mar 20 '24

If the newest waves of next-generation developers are using different programming languages, don't you think that's an indication of an ecological shift toward other languages? Python, for example, is the starting language in many major schools.

1

u/[deleted] Mar 20 '24

No because new students don't dictate what languages are used; the experienced engineers working on existing business systems do.

1

u/SpeedDart1 May 15 '24

Business needs determine what technologies are used, not developer wants

1

u/nomnommish Feb 24 '24

Ironically the worst performing and dog slow apps I have used and had to upgrade/replace were Java and .net apps.

I feel this whole fast/slow debate is hugely overblown. The truth is that 90% of the app performance depends on how many DB calls it makes and how heavy those calls are. Not on the CS and leetcode stuff people obsess on, like time complexity.

The compiler vs interpreter overhead is usually a statistical error in the larger scheme of things.

Heck, even the whole "enterprise usage" thing is overblown. The only time I had people login by the thousands at the same time was when the app I developed was showing them their bonuses or paychecks or something financially important to large teams like sales teams.

Otherwise you will find that the actual usage is a tiny fraction of the planned usage. And the programming language has near zero influence on the overall performance.

1

u/[deleted] Feb 24 '24 edited Feb 24 '24

The only time I had people login by the thousands at the same time

There is more to applications than login. Ive worked on cloud backend services that handle 20,000 requests per second on average in big tech, speed really does matter then.

→ More replies (12)