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

Show parent comments

-1

u/capm_diealone Dec 29 '23

I don’t have the mental capacity to dispute your assertion that SQL is a programming language, but it’s not even close to Turing-Complete

1

u/raelik777 Dec 31 '23

It is, by definition, a domain-specific declarative programming language. As long as a given SQL engine supports CTEs (common table expressions) and window functions, then it has the necessary recursion features to qualify as Turing complete. Of course, you would NOT want to try to use SQL as a general purpose language, even if you could commit such an atrocity and punish a query engine like that. Given that CTEs weren't introduced until SQL:1999 and weren't readily available until 2005 with MS SQL Server and 2009 with Postgres 8.4, that probably explains why you're not aware of this.

1

u/capm_diealone Dec 31 '23

I’d love to hear more about this. I was under the impression that the L in SQL was a misnomer.

1

u/raelik777 Dec 31 '23

Here's an example of what that kind of horror show can look like: https://wiki.postgresql.org/wiki/Mandelbrot_set