Guys, in a week from now I'll be organizing a Kotl...
# announcements
l
Guys, in a week from now I'll be organizing a Kotlin Dojo. The idea is bringing the Java-people to start playing around with Kotlin, and maybe use it in their projects. Do you have any tips for this? Maybe a dojo-like problem?
m
A new colleague of mine comes from Java background and has just started with Kotlin in one of our projects. He understands the language itself quite fast but there are some specific language features and a lot of library functionality which make Kotlin really great and it takes a while to pick them up. Basics are for example
handling?.potentialNull ?: value
, using
also/apply/let/run/with
and all the sweet stdlib stuff like mapping, sorting, associating, grouping, etc. So I think "how do I solve that common Java problem" (not fancy but basic stuff) "easily in Kotlin" is a good start. Oh and smart casts 😄
k
Sealed Classes + when are my favorite. Return type of a function showing what can happen inside. (Fail, Succeed, Warn) for example
👍 2
l
The power of data classes
r
Use and abuse cases for the fab 5 extensions:
let
,
also
,
run
,
with
,
apply