~/talk

Springing into Kotlin

Talkat Jfokus 2018 · 2018-02-05..02-07· [kotlin, spring]
slides:none on file

A tiny Spring Boot web app (Gradle, Spring Boot 2.0 RC1) gets converted to Kotlin: domain class becomes a data class reduces boilerplate (no constructors/getters/setters/equals/hashCode/toString), repository and controller are migrated with the IntelliJ Java→Kotlin converter, and a CommandLineRunner seeds data. Endpoints /coffees, /coffees/{id} and search by type run in the JVM and return expected results; the migration stays interoperable with existing Java and noticeably shortens code.

AI-written summary · about

  1. 0:00Intro
  2. 4:37Contact Mark
  3. 5:20Who am I
  4. 7:50Goals
  5. 10:37Spring Initializer
  6. 11:49Gradle
  7. 13:30Mongo
  8. 14:42Emacs
  9. 15:14Java
  10. 16:58Building the application
  11. 19:53Coffee Repository
  12. 21:58Spring Data Methods
  13. 23:59Creating a Bean
  14. 27:46Running the application
  15. 29:31Getting started with Kotlin
  16. 31:42Default values
  17. 32:53Mutable values
  18. 34:47Overrides
  19. 36:18Toplevel functions
  20. 38:10Converting Java to Kotlin
  21. 39:34Private Visibility Modifier
  22. 43:14Refactoring
  23. 44:23List of Lists
  24. 46:27Testing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.