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

4

u/BannockBnok Dec 29 '23

You'd have better luck asking in another subreddit. I mean, this one is full of people who are just starting out.

I've done java for 4 or 5 years now and love it, but it's no more than another language choice.

I will say that it's not slow anymore. I've heard stories from my dad of programs freezing and crashing because of the gc, but have never really encountered something like that.

I also really enjoy not having to deal with memory in general. Most I have to think about are io stream resource leaks, but I'm also usually alert when working with them so no issues. Though, I am a bit jealous when I see c/c++ bros doing all sorts of funny wizardry with memory...

For application integrity, if that's something you need, it's a pain in the ass. You need to both secure the JVM as well as the jvm bytecodes contained in your built jar. "Write once, run anywhere" is also dead because of this. It's just a pain to deal with in general. If you don't want reverse engineers touching your program then just know it'll be a pain.

We do have Spring though, which is battle tested and well-established, so if a webapp is something you're building then you're good to go!

The whole platform itself is also very built from years of use. Many libraries to pick from for nearly every task.

Oh and there's no linker so no linker errors. You only have to deal with the compiler.

1

u/capm_diealone Dec 29 '23

This is the exact response I was looking for! And technically I am just starting out in Java. I’ve been unemployed for a few months (the dev job market up here in Toronto is pretty brutal) and I can’t even count how many jobs I haven’t applied to because of ‘Java experience required’.

What exactly is Spring? I’ve seen it on postings and I’ve been asked about it in interviews, but I don’t know what it is. Web framework?

1

u/Academic_Put2971 Dec 29 '23

😳

2

u/capm_diealone Dec 29 '23

Don’t be coy. Help me haha

1

u/Academic_Put2971 Dec 29 '23

Spring is actually a web framework (you can find is grand son called spring boot )

1

u/Academic_Put2971 Dec 29 '23

I was surprised because when companies post a job their mentions the framework their used most of the time 🕰️