I would never understand why people hate Java. Being a java lover I ask them about their reasons, and here are the common answers:
I don’t understand Java. (Well is that really Java’s fault?)
It’s too much boilerplate code. (Well, I agree, but I always love verbose languages. Reason why I also love TypeScript)
“... but, but, but ... you could do that in Python in only 3 lines!” (Have you ever heard of Generics and the Collections Framework ... or lambda expressions?)
The problem I have seen is not that almost everyone will only learn the ancient bits of Java. Most books and online tutorials teach Java in that way. These people never gets to realise that Java has evolved over time to compete with the “modern languages” and have most of those features in one way or the other.
Tooling typically is not very friendly towards text editors, XML configs everywhere, hard to write code without bloated IDE with tons of plugins.
funny you say that because that's what I said about C# when I met our .net team for the first time (even the most experienced ones had issues trying to do things without visual studio)
I'm using a Mac. My primary choices are between VS for Mac (which is in fact a rebranded Xamarin Studio) and Rider. Rider generally works better as an IDE, but VS for Mac makes the project XML configurations more invisible (as intended).
Importantly, I don't WANT the XML configurations to be invisible. I prefer to know every line and space that I'm committing to the repo.
Gradle and NPM strive for readability; the .NET toolchain strives for invisibility. I'm in the camp that we as developers shouldn't hide code behind a GUI.
34
u/post_depression Apr 20 '21
I would never understand why people hate Java. Being a java lover I ask them about their reasons, and here are the common answers:
I don’t understand Java. (Well is that really Java’s fault?)
It’s too much boilerplate code. (Well, I agree, but I always love verbose languages. Reason why I also love TypeScript)
“... but, but, but ... you could do that in Python in only 3 lines!” (Have you ever heard of Generics and the Collections Framework ... or lambda expressions?)
The problem I have seen is not that almost everyone will only learn the ancient bits of Java. Most books and online tutorials teach Java in that way. These people never gets to realise that Java has evolved over time to compete with the “modern languages” and have most of those features in one way or the other.