https://kotlinlang.org logo
Title
n

Nizzle94

01/23/2018, 2:21 AM
I mean mixed codes. My team leader does not agree with me for writing mixed Java and Kotlin. He wants only Java or Kotlin.
d

deviant

01/23/2018, 8:03 AM
you should get rid of such team lead
g

gammax

01/23/2018, 8:48 AM
Agree… The answer should be: “We don’t have Java and/or Kotlin…we have JVM code ;)”
p

Pascal How

01/23/2018, 9:40 AM
If you already have a large code base in Java you cannot convert everything to Kotlin overnight but luckily both Kotlin and Java can coexist in the same project so it makes the transition easy
If you want to rewrite part of your existing code to Kotlin, you can start with Utils or Helper classes as they are usually easier to convert
n

nino

01/23/2018, 9:57 AM
I would agree with such a team lead as it doesn’t enhance code readability to mix languages. In my opinion, you should at least have a good separation between them, let’s say in different gradle modules or packages.