~/talk

Domain modelling made simple: Functions and Values

Talkat KanDDDinsky 2022 · 2022-10-31..11-02· [functional-programming]
links:none on file
slides:none on file

F# code models a train-booking domain in about 40 lines, using single-case unions to prevent mixing IDs and names, discriminated unions to encode mutually exclusive carriage kinds, and option/result/async types to represent missing data, failures and network effects. A confirmed-train wrapper prevents notifying unconfirmed trips at compile time. The VS Code REPL executes types and functions live so incremental changes reveal missing cases and compile errors immediately; the example compiles, runs, and exposes precise domain errors for business review.

AI-written summary · about

  1. 0:00Introduction and domain modeling
  2. 39:03Real-time F# demo
  3. 43:45Q&A and conclusion
~/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.