~/talk

How Kotlin Lets Us Remove Exceptions from Our Code

TalkinPolishat JDD 2024 · 2024-10-22..10-23· [kotlin]
links:none on file
slides:none on file

Kotlin features and techniques for eliminating exceptions from application code by using language constructs like sealed classes, Result, and nullable types to represent errors as values; demonstrates how to replace thrown exceptions with explicit error-handling types and functional-style composition to make error flows safer and more testable.

AI-written summary · about

  1. 0:00Introduction
  2. 1:13Problem with exceptions
  3. 3:20Exceptions in Java and Kotlin
  4. 6:07When to use exceptions
  5. 8:55Bad exception habits
  6. 10:19Sealed classes and pattern matching
  7. 12:24Rewriting service with Outcome
  8. 15:57Performance benchmark
  9. 17:59Functional programming and Option
  10. 20:10Try and Either classes
  11. 22:58Monads and Aider class
  12. 27:33Arrow library benefits
  13. 30:42Validations and error zipping
  14. 32:06Error mapping and accumulation
  15. 33:10Testing with Aider
  16. 34:43Example with suspend functions
  17. 35:47Summary and conclusions
~/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.