World Congress 2022 • Jun 15, 2022

Moving from Java to Kotlin

Urs Peter

Tired of Java boilerplate and unpredictable null pointer exceptions? Discover how migrating to Kotlin can shrink your codebase by 40% while maintaining complete interoperability with existing tools.

Pause
Mute Enter Fullscreen
#1 about 4 min

Introduction to Kotlin history and Java ecosystem interoperability

How careful language design decisions enable seamless interoperability with the existing Java ecosystem.

#2 about 4 min

Condensing object-oriented boilerplate code with primary constructors

Combining field declarations and primary constructors reduces typical object-oriented boilerplate while maintaining instantiation safety.

#3 about 2 min

Simplifying functional programming capabilities with first-class functions

Treating functions as first-class citizens removes the necessity of managing cumbersome single-method functional interfaces.

#4 about 3 min

Implementing type-level null safety and smart casting

Enforcing strict nullability rules at the compiler level eliminates unexpected runtime exceptions during data operations.

#5 about 2 min

Eliminating utility classes by leveraging custom extension functions

Attaching custom operations to external classes directly eliminates the need for abstracted utility files.

#6 about 1 min

Creating expressive testing domain specific languages with infix functions

Using specialized syntax to omit standard calling conventions enables developers to construct readable unit test assertions.

#7 about 3 min

Working with immutable collections and data structure transformations

Default immutability paradigms and concise standard library transformations make data list processing robust and predictable.

#8 about 4 min

Simplifying asynchronous concurrency patterns safely with coroutines logic

Coroutines execute complex asynchronous procedures sequentially without requiring teams to rely heavily on dense reactive toolkits.

#9 about 3 min

Analyzing business benefits and return on investment metrics

Strategic developer education yields rapid returns on investment through significantly reduced defect rates and concise maintainability.

#10 about 6 min

Practical strategies for migrating an existing Java codebase

Converting standard application tests and domains sequentially ensures continuous operational functionality remains stable during syntax migration.

#11 about 2 min

Scaling idiomatic usage models and internal developer training

Establishing clear migration roadmaps and coaching prevents anti-patterns and encourages engineers to write truly idiomatic syntax.

Matching moments

3:01 min

Introduction to Kotlin and Java interoperability

Christian Woerz · LIVE

1:43 min

Summarizing the practical engineering advantages of writing Kotlin

Iris Hunkeler · LIVE

4:52 min

Introduction to the Java and Kotlin ecosystems

Iris Hunkeler · LIVE

1:33 min

Configuring runtime Java and Kotlin interoperability protocols

Iris Hunkeler · LIVE

2:18 min

Recommended resources and frameworks for learning Kotlin natively

Iris Hunkeler · LIVE

3:53 min

Key takeaways and future Kotlin Multiplatform improvements

Petar Marijanović · LIVE