Live data from Hacker News

Java is too old, What should you learn in 2018?

hackernoon.com

1–10 of 17 posts

Re: Java is too old, What should you learn in 2018?

#2
With a title like that, the article should explore many new languages out there and what they offer a programmer.

Instead, this article just answers its question with one word: Kotlin.

I get it; Kotlin is easier to write in than Java. But the article should list why it's better than Scala or Clojure, if we're restricting ourselves to JVM languages. (And why should we?)

There's 48 languages more common than Kotlin, according to https://www.tiobe.com/tiobe-index/ . Why is it better than all of them?

Re: Java is too old, What should you learn in 2018?

#3
post #2

With a title like that, the article should explore many new languages out there and what they offer a programmer. Instead, this article just answers its question with one word: Kotlin. I get it; Kotlin is easier to write in than Java. But the article should list why it's better than Scala or Clojure, if we're restricting ourselves to JVM languages. (And why should we?) There's 48 languages more common than Kotlin, ac…

By restricting ourselves to the JVM, we can introduce Kotlin code gradually because it can run side-by-side with legacy Java code. Unlike the other JVM languages, Kotlin has been designed to work seamlessly with an IDE. It doesn't introduce as much extra symbol syntax as Scala so it's still readable. And it was designed to be statically-compiled from the ground up, unlike Clojure and Apache Groovy which both bolted on clumsy-looking static-typing annotations later on.

Re: Java is too old, What should you learn in 2018?

#4
While there are many great reasons to learn languages like Scala and Kotlin, "Java is old" is not the right one (for one, it's false).

The functional programming elements in Java 8 (And in any way, the title is misleading. It should have been "Kotlin: here is why we think it's better than Java 5" - because that's the actual content of the article.

I like learning about new languages, but I wish the article had more. For instance, it doesn't mention functional programming paradigms (the new thing in Java 8), even though Kotlin does have them, e.g.[1]. That's one way to improve the article beyond the title.

[1] https://medium.freecodecamp.org/my-favorite-examples-of-func...

Re: Java is too old, What should you learn in 2018?

#5
This article pretends that libraries such as Spring, Lombok, Guava and maven/gradle don't exist. It would be like saying Javascript is useless because the features that Angular/React/Vue provide aren't provided in the core syntax.

There are good reasons to move into something like Kotlin but the author has barely touched on any of them. "Java is old" also makes the author sound like they ditch programming languages that aren't currently trending on Twitter or something.

Re: Java is too old, What should you learn in 2018?

#8
post #7

Kotlin is just Java with some really _nice_ syntactic sugar. It transpiles 1:1 to Java so you are going to need to know Java anyways.

Kotlin also compiles to pure JavaScript.

Does this mean that Kotlin is JavaScript with some really _nice_ syntactic sugar?

Re: Java is too old, What should you learn in 2018?

#10
https://www.pluralsight.com/tech-index

Java might be old, but it's still a long way from dead. And actually it could be argued that it's done a fantastic job keeping up with the demands of modern development. Kotlin and Scala are great, but there's still tons of need for and value in Java itself.

Post reply on HN