One of the most salient features of our Tech Hiring culture is that there is so much bullshit. Everyone knows this. Each of us contributes his share. But we tend to take the situation for granted.
On the other hand, Java is better than people think,
and especially, it's much better than Android developers think,
because Android "Java" is stuck in the past.
I keep refering people to this article from Roman Elizarov,
maestro ex Kotlin coroutines at JetBrains
After looking at Groovy and Scala I didn't see the point of Kotlin. I'm trying to write an API in it just check will it grow on me but I don't see the benefit in many cases for now. I'm using Java 11 and hopefully switching to Java 14 soon so a lot will be gone from the pro side of Kotlin. If you write anemic classes than Kotlin. Simple to deliver CRUD fast. If you want real domain things it's just to much to get used to how to overide those getters and setters. Too confusing so I end up writting privats with custom getter and setter just to override something like add parameter to setter or such. It's just my current style of development.
For backend development, I would also prefer Scala; however, Kotlin is very popular for Android development. Last time I checked it wasn't possible to use Scala on Android (or you had to use an old version).
Yup. Anyways I'm pointing out that if I wanted faster development for backend it's hard to skip Groovy and use Kotlin, I just don't see it. On the other hand, Scala is also great and had val, var, pattern matching, reactive features, way before anyone heard of Kotlin so why switch to it? Java 14 has a lot of good stuff, maybe immutability is not there yet but I don't use it that much. You can achive it if you do good domain models. Example, I avoid getter/setter in domain part if I know what should domian do. Dtos are generated by IDE anyways huehue. If Java records get copy featute I think that's it for me. For now it looks like simple class
Kotlin! I think the ability for more concise code is the biggest advantage, no need to "new" objects or use semi-colons, allows for you to turn your thoughts into code quicker. Null safety and immutability is great too.
I'm an android developer and have done work in both Java and Kotlin, definitely prefer kotlin more and am glad my team is transitioning to using kotlin for our application :)
Latest comments (24)
clojure
Kotlin :)
@fultonbrowne I love Kotlin, it's my default language for everything.
I wrote here how to learn it
Best ways to learn Kotlin in 2020: browser vs IDE, books vs tutorials, for newbies and Java devs
Jean-Michel Fayard π«π·π©πͺπ¬π§πͺπΈπ¨π΄ γ» Dec 15 '19 γ» 6 min read
On the other hand, Java is better than people think,
and especially, it's much better than Android developers think,
because Android "Java" is stuck in the past.
I keep refering people to this article from Roman Elizarov,
maestro ex Kotlin coroutines at JetBrains
A Tribute to Java - Roman Elizarov - Medium
Roman Elizarov γ» γ» 6 min read
Medium
and if you know only Java 8 from Android, read @awwsmm
20 Reasons to Move On from Java 8
Andrew (he/him) γ» Nov 23 '19 γ» 31 min read
Java. It is still better engineered and far more consistent than Kotlin. IDE support is also better.
After looking at Groovy and Scala I didn't see the point of Kotlin. I'm trying to write an API in it just check will it grow on me but I don't see the benefit in many cases for now. I'm using Java 11 and hopefully switching to Java 14 soon so a lot will be gone from the pro side of Kotlin. If you write anemic classes than Kotlin. Simple to deliver CRUD fast. If you want real domain things it's just to much to get used to how to overide those getters and setters. Too confusing so I end up writting privats with custom getter and setter just to override something like add parameter to setter or such. It's just my current style of development.
For backend development, I would also prefer Scala; however, Kotlin is very popular for Android development. Last time I checked it wasn't possible to use Scala on Android (or you had to use an old version).
Yup. Anyways I'm pointing out that if I wanted faster development for backend it's hard to skip Groovy and use Kotlin, I just don't see it. On the other hand, Scala is also great and had val, var, pattern matching, reactive features, way before anyone heard of Kotlin so why switch to it? Java 14 has a lot of good stuff, maybe immutability is not there yet but I don't use it that much. You can achive it if you do good domain models. Example, I avoid getter/setter in domain part if I know what should domian do. Dtos are generated by IDE anyways huehue. If Java records get copy featute I think that's it for me. For now it looks like simple class
Java.
Kotlin! I think the ability for more concise code is the biggest advantage, no need to "new" objects or use semi-colons, allows for you to turn your thoughts into code quicker. Null safety and immutability is great too.
I personally prefer Java, I will move to Kotlin whenever it outshines Java for enterprise (if ever) in terms of employment, since that's my goal :D
I'm an android developer and have done work in both Java and Kotlin, definitely prefer kotlin more and am glad my team is transitioning to using kotlin for our application :)
Kotlin. It's faster to type, easier to read, and still compiles to Java Bytecode... As well as native code, while transpiring to JavaScript!
I'm definitely glad I know Java, though... That allows me to figure out some of the documentation for Spring, etc...
Some comments may only be visible to logged-in visitors. Sign in to view all comments.