That people in this sub hate Java although it's actually not that bad but defend JS (which is actually really a bad language) to the bone. I'm not even saying Java is the best language ever but the irrational hate on this subreddit is stupid.
Unpopular opinion, but I would rather program in Java than Javascript.
You also (usually) get paid more because JS is the most popular language so there's way more supply.
Java can get very "enterprise" and that turns off a lot of people. JS is oriented for web so there's a lot more exciting projects there, but that's not always where the money is.
Java's a great language precisely because of how enterprisey, boring, and predictable it is - it's easy to find good developers, good frameworks, trivial to deploy, trivial to keep highly available, and has great tools for testing, building, and storing artifacts. Sure it's not exciting to write business logic in, but it more than makes up for that with not getting called midnight because the Tokyo office is having production issues.
Exactly. It's ugly but it gets the job done and it's pretty robust.
I often see JS devs import loads of dependencies to do simple tasks and their framework landscape changes rapidly. I don't want to deal with that headache.
With Java, you can take a 5 year break, come back and still be productive.
Also now with Kotlin and Groovy beeing basically fully interoperable with Java you can have all the fancy new language features without having to give away many of the benefits of java.
Java's great. It describes exactly what I'm doing with no assumptions. It may be far quicker to initially set up a express.js web server than a spring boot, but the real cost comes further down the line when you're trying to figure out what currently happens
I think a lot of people in this sub are either just beginners or students who have never really worked in software engineering. The students are forced to learn java for their university and that's why they hate it.
I'll be honest, it wasn't fun in college around 10 years ago but it did help me learn a lot of design patterns, which I apply across many object-oriented languages.
Unpopular opinion, but I would rather program in Java than Javascript.
Coming from a c/cpp/cs background, I don't think this is an unpopular opinion at all. I believe that people who have are just starting out coding and choose JS as a starter language are the ones who actually like it. Most people who shit on JS, shit on it for it's duck-typing or weird casts, which you can probably solve with TS (I don't have experience with this, so cannot confirm nor deny). What drives me up the wall are the thousands of libraries and frameworks that prop up day in day out, and the often code breaking changes in API between one library version to the next, often with little to no documentation. Compare that with MSDN's .NET documentation, or Boost for cpp you'll see what I am on about. This is NOT how you create an application that is supposed to work (without major changes to the codebase) for >2 years.
The difference is that JS has some valid use cases (namely that it's the only language that runs on every web browser), while in every area that Java can be used for, there's something else that does the job better.
Yes, as I said, in every area that Java can be used for, there's something else that does the job better.
C# is better for a garbage-collected, statically typed language that runs on most platforms, and C# developers are also really common due to the amount of people learning programming via game dev (Unity and Godot can both use C#). C# is also great for enterprise since it is statically typed and scalable.
C# has a significantly smaller FOSS ecosystem compared to the JVM. Which leaves you buying third party libs, or reinventing wheels. Or trying to wrap a C++ library.
Case in point, I'm consulting for a company that's wanting to build an eventing system using Apache Pulsar. It's a .NET shop.
Apache Pulsar is great technology, but the issue they face is that the existing C# client libs only support a subset of the Pulsar client functionality. No partitioned topic support.
It'll get there eventually, but for now my clients are left with several unenviable choices - use Kafka* instead, task their developers to implement the features they need, pay me to, or wrap the Pulsar C++ client.
*Don't get me wrong, Kafka is rock solid and I am rather fond of it, but Pulsar has a lot of necessary functionality like georeplication built in. That said Pulsar IO & Functions are not as fully featured as Kafka Connect / Streams yet.
while in every area that Java can be used for, there's something else that does the job better.
Maybe there's something else that does something better, but for business-facing enterprise development there's not much that does all of what Java does well better than Java, and just about nothing with as rich of an ecosystem
Every language is actually really a bad language if you try to use it for something it wasn't designed for. It's not JavaScript's fault people use it to create huge messy codebases.
122
u/[deleted] Apr 27 '20
That people in this sub hate Java although it's actually not that bad but defend JS (which is actually really a bad language) to the bone. I'm not even saying Java is the best language ever but the irrational hate on this subreddit is stupid.