~/talk

Safe Kolin

Talkat droidcon London 2019 · 2019-10-24..10-25· [kotlin]
slides:none on file

Kotlin safety centers on limiting mutation and making guarantees explicit: prefer val over var and immutable objects, use data class copy for updates, hide mutable collections behind read‑only interfaces, and avoid leaking mutation points. Eliminate platform types early and never expose inferred concrete types from public APIs. Use require/check/assert for clear failures, use(...) to safely close resources, process large files with sequences, and note a concrete bug: turning a captured local prime into a var breaks the sieve producing 2 3 5 6 7 8… instead of primes.

AI-written summary · about

  1. 0:00Introduction to safe Kotlin
  2. 1:25Mutability and its risks
  3. 5:41Kotlin’s tools for immutability
  4. 15:03Limiting scope and visibility
  5. 18:53Null safety and platform types
  6. 23:55Avoiding inferred types in APIs
  7. 24:15Expressing expectations with require/check/assert
  8. 29:59Handling failures without exceptions
  9. 33:34Safe null handling strategies
  10. 36:45Resource management with use
  11. 38:13Essential role of unit tests
  12. 40:19Book promotion and closing
~/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.