~/talk

Transforming a Java Desktop Application to Kotlin Multiplatform

Talkat droidcon NYC 2019 · 2019-08-26..08-27· [kotlin]
github:jossiwolf
slides:none on file

Attempt to port a Java Swing cycle-editor fails to reuse UI: Swing components remain JVM-only so the UI must be rewritten per platform, but the heavy business logic converts well when refactored into pure functions and a single state data class. Uses IntelliJ project wizard, Gradle Kotlin DSL and expect/actual to expose platform hooks, moves models to commonMain using the common stdlib, and recommends a single render(state) entry point; mentions Kotlin DSL, kotlinx.serialization, Ktor and Clock as usable libraries.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 4:25What is Kotlin Multiplatform
  3. 11:33Existing Java application overview
  4. 14:31Challenges with UI dependencies
  5. 17:53Why I failed at conversion
  6. 19:40Architecture tips for success
  7. 24:42Conversion strategies
  8. 26:49Conclusion and resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.