https://kotlinlang.org logo
Title
e

efemoney

03/05/2019, 3:04 PM
My current idea is to showcase how kotlinlang improves implementation of and, in some cases, obsoletes some of Effective Java’s recommendations
Please reply here 🙏
h

hudsonb

03/05/2019, 3:06 PM
I'd highlight, nullability, extension functions and data classes
👍 2
p

Paul Woitaschek

03/05/2019, 3:06 PM
+ sealed classes
But these 5 won't fit in 10 minutes I guess 😉
h

hudsonb

03/05/2019, 3:10 PM
For examples, I'd pull them from the codebase if possible. Find an existing class, show them it as a data class. Find a heavily used static utility method, show it to them as an extension function, etc
1
t

tddmonkey

03/05/2019, 3:10 PM
if you’re pushed for time - data classes and nullability
t

thanksforallthefish

03/05/2019, 3:12 PM
backend developer here, probably more important than everything is java compatibility. If you can show them they can start using kotlin in the java projects you are already running it might give them more security to try in terms of feature, nullability, data classes and first class functions (if they use functions in java)
1
l

LeoColman

03/05/2019, 3:46 PM
With a small time, I'd go with Nullability + Extension functions
e

efemoney

03/05/2019, 4:16 PM
Thanks everyone. This is a good list. There is also a possibility that I can, week after week, get 10 more mins to talk about kotlin again so that I will be able to cover all of the suggestions in this thread, albeit over a couple weeks, so keep ’em coming!
m

Mike

03/05/2019, 8:05 PM
And if they use Lombok, this will be very useful for them. I say if a team is using StringUtils, Guava or Lombok, they’ve already admitted Java could use some syntax help, so Kotlin is a very good option. https://blog.frankel.ch/comparing-lombok-and-kotlin/
e

efemoney

03/05/2019, 8:06 PM
Thanks, that’s helpful. We do indeed use Lombok!
m

Mike

03/05/2019, 8:09 PM
Yep. Replace the Lombok annotation processor with the Kotlin compiler and reap the other benefits of Kotlin…