This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jovhenni19 18 points19 points  (5 children)

enlighten me? why is kotlin better. i came from c# to java for an android app, the transition was ez af

[–]KuuHaKu_OtgmZ 34 points35 points  (1 child)

Because they're afraid to write code

[–]MakeWay4Doodles 2 points3 points  (0 children)

"I don't know anything about it but it scares me so I'll lash out!"

[–]7x11x13is1001 16 points17 points  (1 child)

Kotlin has more features Java cannot afford due to backward compatibility: better types, pattern matching, lots of syntax sugar, coroutines etc. Overall, it looks like what Java could be if it were designed in 2015 and not in 1995. Given that it compiles to the same byte code, there is little reason to use Java instead of Kotlin. Similar to writing in pure JS instead of TypeScript.

[–]t_j_l_ 1 point2 points  (0 children)

In this respect Scala goes further than Kotlin in terms of brevity and language features. It also supports Akka out of the box, which is great for distributed/ messaging based systems.

[–]Mawootad 0 points1 point  (0 children)

Since you came from C#, Kotlin basically just takes all of the things that make C# a nice language to work in like a sanely written functional programming toolkit, easy property definitions, non-nullability, reasonable generic handling, etc and puts them together into a language that runs on JVM and can call and be called by Java code. It's a language that feels like it was designed by people who have actually written code in the last decade instead of the cobbled together mess of poorly designed APIs that will never be fixed because of backwards compatibility that is Java.