~/talk

Algebraic Data Types

Talkat FrontCon 2019 · on Friday, 2019-04-05· [javascript, frontend-architecture]
slides:none on file

Claims that algebraic data types are just product type = multiply and sum type = add and shows concrete JavaScript counts: a product example yields 12 combinations (3 × 2 × 2) and a sum example yields 7 options (3 + 2 + 2). Demonstrates a real bug class—mixing string and undefined—resolved by explicitly handling the string | undefined cases. Uses plain code-level reasoning and counting rather than abstract theory, so usefulness is demonstrated with numbers and a fix that actually works.

AI-written summary · about

  1. 0:00Start
  2. 1:06Algebraic Data Types
  3. 1:21Primitive types
  4. 1:36Fruit Salad - a Product type
  5. 2:21Persona Product type
  6. 2:36Fruit Snack -a Sum type
  7. 3:52Matching Types
~/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.