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

Adding fun to API development with Kotlin

yostane
December 03, 2024

Adding fun to API development with Kotlin

Kotlin is much more than just a language for making Android apps; it is a complete ecosystem that also supports API development. In addition to supporting JVM and JS frameworks, Kotlin offers powerful features that make API development fun and enjoyable.

Imagine having a compiler that helps you avoid null pointer exceptions. Kotlin makes this possible and more. During this session, we'll explore some of the best Kotlin features and use them to develop APIs for JS, JVM, and native runtimes.

By the end of this presentation, Kotlin will elevate your Developer Experience (DX) to the next level.

yostane

December 03, 2024
Tweet

More Decks by yostane

Other Decks in Programming

Transcript

  1. 2

  2. 3

  3. 4

  4. Yassine Benabbas DevRel @ Worldline, Teacher Lille Android User Group

    @yostane in/benabbasyassine - 5 @yostane.bsky.social
  5. Idiomatic Kotlin • Coding with a style that uses the

    features of the language • For ex. : getter and setter functions in classes is not Kotlin idiomatic 8 https://wrl.li/kt-nb-ad24
  6. KMP: principle 11 Compiler backend Kotlin/ JVM Kotlin/ JS Kotlin/

    Native Kotlin/ Wasm iOS Desktop Browser Android Backend Data science Compiler frontend Tools Libraries Program.kt
  7. Compiler backend Kotlin/ JVM Kotlin/ JS Kotlin/ Native Kotlin/ Wasm

    iOS Desktop Browser Android Backend Data science Compiler frontend Tools Libraries 13 Code that depends on the JVM
  8. Compiler backend Kotlin/ JVM Kotlin/ JS Kotlin/ Native Kotlin/ Wasm

    iOS Desktop Browser Android Backend Data science Compiler frontend Tools Libraries 14 Code that depends on the JVM
  9. Compiler backend Kotlin/ JVM Kotlin/ JS Kotlin/ Native Kotlin/ Wasm

    iOS Desktop Browser Android Backend Data science Compiler frontend Outillage Librairies 15 Multiplatform code
  10. Ktor server By JetBrains • Free and OpenSource • Relies

    on DSLs • Plugins: • Rest APIs • Websockets • RPC • And a lot more - 22
  11. • Many choices: Ktor, Spring, Quarkus, NodeJS, … • Notebooks

    and scripting support • Fullstack cross-platform • Interoperable with Java and JS ecosystems • Language: concise, modern and fun 33 Kotlin API dev