r/learnjava • • Dec 29 '23

I don’t like Java. Change my mind.

Hi all! I don’t mean for this to be a shitpost or anything like that, truly. Lately, for some reason, posts from this sub have been entering my email. I’m primarily a C# dev, and I love Typescript as well. I’ve always hated Java. Don’t ask me why…I don’t know. When I was in school, I was more or less taught that Java is super slow because the JVM is bad.

I’d love to know what’s been up with Java, partly because a lot of banks seem to use it and partly because I don’t wanna be that guy that just discounts a whole language because of flaws it had over a decade ago.

So change my mind! I’d love to find out what’s been up with Java, and any resources y’all can provide for learning Java (bear in mind I’m a very experienced software engineer) that aren’t LinkedIn Learning (I get access through my local library but that access is down right now) would be super appreciated.

Again, this is not a shitpost. I just hate Java. Change my mind!

0 Upvotes

86 comments sorted by

View all comments

10

u/Stack_Canary Dec 29 '23

Java is pretty fast these days. Fairly certain it outperforms C#

0

u/Miserable_Ad7246 Dec 29 '23

I would not make such a bold statement. I'm a C# dev. Java has some things going for it, but usually, to get that perf advantage you need to tweak things out. Dotnet just tends to work well out of the box.

For me, the biggest advantage Java has is and ability to use different GCs (like zgc). DotNet in this regard is still lagging. Other than that, I feel that both environments are very close and should trade blow in the hand of a typical developer. Modern dotnet jit and runtime are very well optimized and dotnet is pulling away when it comes to native AOT.

1

u/Stack_Canary Dec 29 '23

True, I guess it was a bit bold/simplified to say it outperforms C#, they're quite similar. Either way, I don't think the reason for choosing one over the other is speed. If you're actually looking for performance and speed in a system where that's necessary, you should consider languages like rust, go or elixir.

1

u/capm_diealone Dec 29 '23

Okay I’ve never even seen a single line of rust, but I’ve heard about it. What’s the benefit there? Why use rust over something like C# or Java where the community is mind-bogglingly massive?

1

u/wisdom_power_courage Dec 29 '23

Performance and speed.

1

u/capm_diealone Dec 29 '23

Elaborate?

1

u/wisdom_power_courage Dec 29 '23

0

u/capm_diealone Dec 29 '23

I’m gonna be honest right now…I’m pretty drunk and on the edge of sleep. So I’ll read this in the morning. But thank you <3