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

Kotlin In the real world

Kotlin In the real world

- What you should know before starting a Kotlin project -

Android Makers Paris 2017

Rémi Pradal

April 13, 2017
Tweet

More Decks by Rémi Pradal

Other Decks in Programming

Transcript

  1. By OCTO & The Refiners What you should be aware

    of before starting a Kotlin project Rémi Pradal Android Makers 2017 K TLIN IN THE REAL WORLD
  2. CAN I USE KOTLIN ON A LEGACY PROJECT? IS KOTLIN

    MATURE ENOUGH FOR A BIG PROJECT? MULTIPLE LANGUAGES MIX BEST PRACTICES?
  3. OPEN WHAT YOU NEED TO MOCK Introduces test related characteristics

    in production code OPEN ALL THE THINGS Useful for POKO used by a library Not specific to the test workspace USE INTERFACES Complies with the interface segregation principle Can add many boilerplate code
  4. COMPLEXIFY ONBOARDING DIFFERENT LANGUAGE PARADIGMS LANGUAGE MULTIPLICITY IN A PROJET

    MAY LEAD TO INTEROPERABILITY BOILERPLATE ISOLATE THE DIFFERENT CODE BASES PER FEATURE OR TECHNICAL LAYER
  5. TAKEAWAYS Embrace language’s design specificities Code quality tools are not

    as advanced as Java’s Try to keep your codebase coherent when mixing Java & Kotlin Remember you are not using Android’s official language