is there someone who switched from Python to Kotli...
# random
p
is there someone who switched from Python to Kotlin (or started using Kotlin alongside Python)? I have several questions
y
I've used both, not in the same project obv, but I've relayed ideas between the 2 languages. Ask ahead!
p
I'm curious specifically about a case when someone is proficient in Python, and then learns about and onboards Kotlin. In particular: • what's the biggest positive and negative surprises once you first used Kotlin? • how easily you felt you can translate the constructs/idioms to Kotlin, and how much time it took you to be proficient? also, wondering if switching the mindset from imperative to functional/immutable was a problem, or you tried hard to use the imperative style in Kotlin as well to mimic Python • what was the motivation to use Kotlin over Python?
I'm just considering showing Kotlin to my Python colleagues, and I'm wondering how to approach it in an enjoyable way
I'm planning to do side-by-side comparison of most frequent constructs, just to showcase the syntax and idioms, but of course there's much more
k
I wouldn't think the Python developers would be moving from a procedural to a functional mindset. Python has a lot of heavily used functional idioms, such as list & set comprehensions, and non-mutating functions such as sorted(list).
s
python has those idioms, but there's nothing making you use them
I have seen plenty of procedural, nearly C-style python in my time