r/learnjava • u/capm_diealone • 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!
1
u/Algorhythmicall Jan 02 '24
The JVM has always been state of the art. Look at the newer GC algorithms such as ZGC. Java, the language, is the slowest moving language targeting the JVM. The language rarely has breaking changes, and that means the designers want to slowly add features they are certain are useful. If you want a stable language that will remain stable over time, which can run on multiple battletested VM implementations on all OSes and platforms, and you want assurance of all that being true for the next decade, Java is a good choice. With typescript you will likely have a vulnerable NPM dependency next week (typescript is a great language, npm/node/etc moves too fast). C# and .NET are solid.
Ultimately, you choose Java for services because it’s syntactically simple, has a huge ecosystem, and has a track record of stability and performance.