~/talk

Learning Functional Programming Through Construction: First Principles

slides:none on file

Builds a TypeScript emulator for a two‑axis Rover in ~25 minutes, using discriminated union types for Direction and Command, immutable Rover type (readonly properties) so updates return new Rover instances, and switch-based pure functions move/turn the rover. Adds an identity function for unknown/quit and shows the type system prevents invalid values at compile time. Composes the parsing pipeline with a compose string->action function to map input to Rover transformations and it compiles and runs.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:05Building a Rover emulator
  3. 3:13Data modeling with types
  4. 8:24Immutability in practice
  5. 10:33Implementing commands
  6. 16:47Gluing functions together
  7. 21:53Updating Rover state
  8. 22:56Function composition
  9. 23:58Key takeaways
  10. 24:19Q&A 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.