Kotlin In the real world

Kotlin In the real world

- What you should know before starting a Kotlin project -

Android Makers Paris 2017

Ae9f854b103d510aebe4975a6f6fe514?s=128

Rémi Pradal

April 13, 2017
Tweet

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. Android developer discovering Kotlin – Circa 2015

  3. None
  4. CAN I USE KOTLIN ON A LEGACY PROJECT? IS KOTLIN

    MATURE ENOUGH FOR A BIG PROJECT? MULTIPLE LANGUAGES MIX BEST PRACTICES?
  5. By OCTO & The Refiners Testability

  6. “Design and document for inheritance or else prohibit it” -

    Effective Java Item 17, Joshua Bloch
  7. KOTLIN DESIGN ENFORCES « FINAL BY DEFAULT » DESIGN How

    can I create my mock easily ?
  8. 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
  9. By OCTO & The Refiners Code quality tooling

  10. None
  11. By OCTO & The Refiners Interoperability

  12. Great Interoperability Usable today in a legacy project. But...

  13. 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
  14. By OCTO & The Refiners Language longevity

  15. KOTLIN IS NOT GOOGLE’S SWIFT

  16. 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
  17. None