Slide 1

Slide 1 text

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

Slide 2

Slide 2 text

@mkheck WHO AM I? • Architect & Developer • Advocate • Author • Java Champion, Rockstar • Kotlin Developer Expert • Pilot

Slide 3

Slide 3 text

@mkheck LATEST BOOK https://bit.ly/springbootbook @springbootbook

Slide 4

Slide 4 text

@mkheck THE PLAN “To achieve great things, two things are needed: a plan, and not quite enough time.” - Leonard Bernstein

Slide 5

Slide 5 text

@mkheck THE PLAN • Kotlin vis-à-vis Java • Spring Boot: a quick examination of your (many) options • Pros and Cons: facts and opinions • CODE

Slide 6

Slide 6 text

@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

Slide 7

Slide 7 text

@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?

Slide 8

Slide 8 text

@mkheck ADD SOME SPRING BOOT • You have MANY options…but there ARE opinions • Groovy? • Kotlin • Java

Slide 9

Slide 9 text

@mkheck PROS AND CONS • The facts • Some opinions • YMMV

Slide 10

Slide 10 text

@mkheck

Slide 11

Slide 11 text

@mkheck

Slide 12

Slide 12 text

@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?

Slide 13

Slide 13 text

@mkheck RESOURCES • https://github.com/mkheck/give-kotlin-the-boot • https://kotlinlang.org/ • https://spring.io/projects/spring-boot • [email protected], [email protected] • @mkheck on Twitter