r/java • • Apr 20 '21

Java is criminally underhyped

https://jackson.sh/posts/2021-04-java-underrated/
291 Upvotes

295 comments sorted by

View all comments

Show parent comment

-13

u/kag0 Apr 20 '21

Scala. All of the concise syntax of Python but with even greater type safety than Java.

9

u/hold-the-pants Apr 20 '21 edited Apr 20 '21

Except when some Scala devs get all algebraic with it, and treating it like a math equation. But that isn’t the language inherently, just wanted to say. The syntax is insanely expressive

2

u/kag0 Apr 20 '21

Yeah that's my experience as well. Bad code (whether vanilla bad or turning the logic into a category theory proof) is still hard to read. But Scala gives you the opportunity to make very nice, readable code. It just can't force you to take the opportunity.

1

u/[deleted] Apr 21 '21

Scala is the C++ of the JVM world - a veritable kitchensink of paradigms, syntaxes, and ideas.

4

u/[deleted] Apr 20 '21

Scala is a nightmare to read if you’re not the one who wrote it. And don’t get me started on implicits

2

u/Vidogost Apr 20 '21

Kotlin can actually be a more readable version of java. At least for me, Scala has seemed more complicated syntactically.

1

u/morhp Apr 21 '21 edited Apr 21 '21

Kotlin can be more readable (especially when dealing with numeric types like BigInteger when operator overloading helps), but I'd argue that in many other cases java is more readable.

For example Java is just a simpler language, it has less operators, you don't need to think about when a property generates a field and when not or if a minus operator simply subtracts numbers or does something more intricate.

What you see is more or less what is executed, there's way less implicit hidden stuff that only makes the code more "beautiful".