Java ❤️ Kotlin, Happy Together 🎵 (Android Dev Summit '19)

preview_player
Показать описание
Kotlin is awesome and you want to write all your code in it, but what about the thousands of lines of code already written in the Java programming language? Or maybe you have a library or project that is written in Java and already has been used in so many Kotlin or Java projects.

In this talk, we will look at the best practices for writing Kotlin and Java code that works so seamlessly from the other that the only way to know what language it's written in is to look at the source code.

Presented by: Murat Yener, Nicole Borrelli, Wenbo Zhu

#AndroidDevSummit event: Android Dev Summit 2019; re_ty: Publish; product: Android - Languages; fullname: Murat Yener, Nicole Borrelli, Wenbo Zhu;
Рекомендации по теме
Комментарии
Автор

What about calling kotlin functions that uses coroutines from java code ? i think this has to be discussed also

bahaaka
Автор

When Kotlin makes you save 10 lines of code but you have to add 9 interop annotations

codinginflow
Автор

Please someone tell me where to download the excellent slide presentation?

hieuna
Автор

I already had projects coded in Java. Because my ability and time are limited I can't convert those projects to Kotlin now.
Can I use Java and Kotlin in the same project?
Can I add Kotlin code for modularity, dynamic delivery, at-install delivery, on demand delivery, instant-delivery to a Java project?
Java is good enough to code for modularity, dynamic delivery, at-install delivery, on demand delivery, instant-delivery?

NguyenDinhTrinh
Автор

11:06 But the interface gets a nice constructor method :

setOnCheckedChangeListener(

radioGroup, resId -> ....
})

tieskedh
Автор

So that mean Kotlin will replace Java in the future Android? or just works together side by side? I cannot find Java in Android doc

kheavmady
Автор

No way, I don't think so! Java is gone and tanks God. Kotlin is far away intuitive and productive!

Conta_Google
Автор

I don't know any of these languages well yet I'm watching how to use them together 🤔

knx
Автор

They do not mention the bigger problems - like the inaccessibility of inline classes from Java and that all internals are visible as public in Java and that it's quite hard to hide all internals. The Java interior is not as "roses and flowers" as they sell it.

sevarbg
Автор

one more thing... really? have we gotten this far...copy presentation technices from apple?

florianschwarzer