~/talk

No Snakes on My Ladder: Winning at Software with Types

Talkat DDD Perth 2026 · on Saturday, 2026-10-03· [rust, typescript]
links:none on file
slides:none on file

A Snakes and Ladders single‑player simulator written in Rust demonstrates that encoding game states as types prevents impossible states (no square >100, no double‑rolls) by using newtype wrappers, enums for tiles, ownership and a type state pattern so only valid transitions compile. A mistaken phantom data approach reintroduces bugs. Nine common naive bugs vanish, test surface shrinks by ~2/3, and performance is comparable or better when the board is passed by pointer.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:04Talk overview and Rust basics
  3. 8:57Invalid states in the game board
  4. 10:44State becomes type pattern
  5. 13:56Ownership and move semantics
  6. 16:44Phantom data pitfalls
  7. 19:53Where type state is used
  8. 20:59Multiplayer game challenges
  9. 24:28Costs and trade-offs of type state
  10. 26:42Seven key takeaways
  11. 28:30Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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.