~/talk

Practical Tips For Legacy Java Codebases Conversion Into Kotlin

Talkat KotlinConf 2023 · 2023-04-12..04-14· Granbeurszaal· [kotlin]
links:none on file
slides:none on file

Claim: incremental migration with the j2k converter plus manual review yields idiomatic Kotlin rather than verbatim Java syntax. Tools and practices: add Java nullability annotations, run the converter on multiple files to preserve git history, use a git query to pick the top 15 changed files over 12 months, enforce team guidelines with linters/formatters, and automate repetitive refactors. Caveats: platform types cause runtime nullability issues, contracts and DSLs can help but require care, and AI (ChatGPT) speeds conversion but still needs human review.

AI-written summary · about

  1. 0:00Intro
  2. 0:26What you need
  3. 1:11Why Kotlin
  4. 3:50Conversion Plan
  5. 10:04Guidelines
  6. 18:06Get Command
  7. 23:24Smart Casting
  8. 24:01Domain Models
  9. 25:14Usage Classes
  10. 26:16Typesafe Builders
  11. 27:38Should I Convert Everything
  12. 28:43Lazy Features
  13. 30:07Top Level Functions
  14. 32:10AI Tool
  15. 33:13Code Modification
  16. 33:33Resources
  17. 33:53Meta Engineers
  18. 34:04Summary
  19. 34:26Outro
~/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.