Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Convert Java file to Kotlin file ⌥⇧⌘K

Convert Java file to Kotlin file ⌥⇧⌘K

Kotlin一行も書かずKotlin率上げられる方法

Panini

May 30, 2018
Tweet

More Decks by Panini

Other Decks in Technology

Transcript

  1. About Me • Matthew Vern / Panini • Twitter: @callipan

    Github: panpanini • Android Engineer • Kotlin可愛い
  2. About Me • Matthew Vern / Panini • Twitter: @callipan

    Github: panpanini • Android Engineer • Kotlin可愛い • [email protected]
  3. How I started Kotlin • Android Java & iOS Objective-C

    • Swift announced • Android Swift • First Kotlin: M13? (~09/2015) • Clone sample project
  4. How I started Kotlin Problems: • I don’t understand the

    language • I don’t understand the intention of the code
  5. Convert Java file to Kotlin file • Automatic conversion •

    About 90% effective • Easier than writing by hand
  6. Summary • Data classes are nice • Lateinit is useful

    • Lazy is useful Kotlin-like writing style: • Pass functions instead of Single Abstract Method Interfaces