~/talk

Leveraging (algebraic data) types to make your UI rock solid

Talkat Nordic.js 2022 · 2022-10-06..10-07· [typescript, frontend-architecture]
slides:none on file

Shows concrete TypeScript patterns and a small library that replace nulls, exceptions and ad‑hoc loading flags with explicit sum types so UI states become unambiguous. Uses an array/find smartwatch example to show nested Option/Maybe cases, maps errors into a Result/Either value so failures are part of the type, and models fetch lifecycle as a single AsyncData union to eliminate impossible state combinations. Includes a demo loading a random person and a GitHub repo to try.

AI-written summary · about

  1. 0:00Introduction
  2. 1:17State management challenges
  3. 4:45Managing presence with options
  4. 9:45Handling success and errors
  5. 13:56Managing application completion
  6. 17:13Algebraic data types in practice
  7. 20:35Tools and library resources
  8. 23:15Conclusion
~/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.