~/talk

One Project, Three Ways I Changed How I Write Kotlin

Talkat WhatTheStack 2026 · 2026-09-14..09-19· [kotlin, software-architecture]
links:none on file
slides:none on file

Built a turn‑based card game exposes three concrete lessons: a single flexible Hero class with nullable effect fields produces invalid states, replaced by a sealed hierarchy so the compiler forces exhaustiveness; adding layers of types looks neat but costs time and clarity, so each abstraction must earn its place; a single mutable GameState prevents Compose from seeing changes because the reference never changes, fixed by an immutable snapshot and strict unidirectional data flow, which required rewriting logic but simplified testing and UI updates.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:51Modeling with sealed hierarchies
  3. 4:43Avoiding overengineering abstractions
  4. 7:32State management in Compose UI
  5. 11:22Key design lessons learned
  6. 13:51Closing and Q&A
~/search
type to search 6,518 conferences, 143,918 speakers and 192,133 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.