Just get interviewed, used Kotlin, not so familiar...
# random
m
Just get interviewed, used Kotlin, not so familiar with it and got damned.
f
Were you asked about kotlin or did you choose it yourself as a way of writing code?
s
yeah, if you get to pick the language, you always ought to use one you’re very familiar with, and is optimally very fast to write by hand
p
I always use assembly during interviews to establish my dominance. 😎
💯 2
s
please, if you’re not writing your own classloader to call hand-written jvm bytecode from clojure are you really even trying?
l
I’m sorry to hear that your interview didn’t’ turn out well @magisu! Good on you for trying something you are not so familiar with 👏👏 What are some of the things you learnt from the experience?
❤️ 2
b
Just use COBOL and get a job for life.
m
@Luke Sleeman -- I think I still like Kotlin a lot. So Kotlin tastes a little bit Python and much of Ruby. Some points: (1) In Ruby, we know that a method ends with ! will modify this, e.g. sort! will sort this while sort will return a sorted this but keep this intacted; in Kotlin you have to remember dropLast and removeAt.
b
Agreed, in kotlin you have List and MutableList that can help handling that.
m
(2) I am not so sure if in Kotlin, Array could be used as key of a MutableMap
So in Python, List cannot be hashed, but a Tuple could.
But anyway, I made the code work at last and got an onsite 🙂
It just took the entire hour. I thought I could finish the code in Python within 20 mins.
b
Cool what kind of company is that? Are they using Kotlin?
m
nope they are using java. I just volunteered to Kotlin to see if I am good enough at that language. I started kotlin in just 2 weeks 🙂
I still love kotlin more than any other jvm language.
they said it's fine to use any languages if I can make the code work within 1 hour.
b
I never did Java, but needed to use Java libs. Tried Scala first, found it impossible for getting started… Was done with Kotlin in 2 days…
m
No, I never use java. I hate the all-class design of the language.
I tried scala, it's a bit hard to learn.
Clojure -- lisp in jvm
Kotlin -- Ruby in jvm
I love Ruby so why not kotlin?
b
you will have to use Java no in that company? How are you going to deal with that?
btw val a = mutableMapOf<Array<Int>, String>() totally works
m
Yes that works.
But what if I change the value of the key?
I never tried...
Well, I will talk with them onsite about Java. If it is a whole java company, I need to consider the salary then 🙂
b
Are they having trouble finding Java devs
you should get them to try Kotlin for small new projects
m
In my current company I am using kotlin, I have demonstrated it takes less time to develop and the code is much easier to understand. Then they asked me to rewrite it in Java.
b
Jetbrains is working on a Kotlin2Java converter. But yeah I can see that as a reason to leave 😉
m
Sssssshh...I do not have an offer in hand so far...
@Luke Sleeman -- oh yeah, another thing to point out, if you write kotlin during interview you need to explain more as you have to expect that the interviewers do not know, e.g. what does "products.map { it.productName }" mean.
b
Doesn't Lombok have map?
m
No idea. I actually do not use Java myself.
I know Lombok but no more understanding.
b
me neither, I just know many java people say it brings most of the advantage that kotlin has to java (but looking at their website it seems to lack quite a bit of features)
m
How I used a simple line of coroutine and saved a thread pool.
I do not know how to do that in java.
b
coroutines still use thread pool in the back
m
Saved an explicit thread pool.
👍 2