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

Give Kotlin the Boot: Pros & cons of using Kotlin vs. Java with Spring Boot

Give Kotlin the Boot: Pros & cons of using Kotlin vs. Java with Spring Boot

In addition to Java, developers can use Kotlin to create Spring Boot applications. But should they? What advantages does Kotlin offer over Java? What are the downsides?

Life is filled with tradeoffs, and choices are good to have. But life is better when you know the tradeoffs *before* making important decisions, and this session is built around sharing and showing some of those. As both a Java Champion and Kotlin Developer Expert, the presenter loves both children equally, but not in the same ways. Come to this session to see several places in which your choice of language could result in either promise or pitfall. All examples will be coded live & in real-time!

Mark Heckler

October 31, 2021
Tweet

More Decks by Mark Heckler

Other Decks in Programming

Transcript

  1. GIVE KOTLIN THE BOOT? Pros and cons of using Kotlin

    vs. Java with Spring Boot Mark Heckler Principal Cloud Advocate, Java/JVM Languages [email protected] [email protected] @mkheck
  2. @mkheck WHO AM I? • Architect & Developer • Advocate

    • Author • Java Champion, Rockstar • Kotlin Developer Expert • Pilot
  3. @mkheck THE PLAN “To achieve great things, two things are

    needed: a plan, and not quite enough time.” - Leonard Bernstein
  4. @mkheck THE PLAN • Kotlin vis-à-vis Java • Spring Boot:

    a quick examination of your (many) options • Pros and Cons: facts and opinions • CODE
  5. @mkheck THE DISCLAIMER • There will be facts • These

    will be referenceable (they ARE facts after all) • There will be opinions • I will do my best to clearly state which is which • My opinions may differ from your opinions
  6. @mkheck KOTLIN AND JAVA • Kotlin’s raison d’être: “Modern, Concise,

    and Safe” • The wins • The losses • If you’re using Java now, why might you make the switch?
  7. @mkheck ADD SOME SPRING BOOT • You have MANY options…but

    there ARE opinions • Groovy? • Kotlin • Java
  8. @mkheck SOME THOUGHTS • Syntax is very, very similar in

    most (Spring) cases due to excellent APIs • Compiler performance now basically equivalent • Spring code examples in Java and Kotlin • Actual Spring code is Java (except key Kotlin DSL extensions) • Do you – or do you want to – use Kotlin elsewhere?