~/talk

Using Semantic Types to Squash Bugs

Talkat LambdaConf 2019 · 2019-06-05..06-07· [frontend-architecture]
slides:none on file

Elm code converts a bug about masked social security numbers into a compiler-guided refactor: primitives become a wrapper type SSNInput, JSON decoders and input handlers wrap early, display and external ports unwrap late, and the module hides the constructor as an opaque type. Live coding replaces ad hoc string flow with typed entry points and explicit terminal unwrapping, so the compiler forces fixes where masking, submission, or URL building must use the correct semantic form.

AI-written summary · about

  1. 0:00Start
  2. 0:33Using Semantic Types to Squash Bugs
  3. 2:21Elm Architecture
  4. 11:21Guard Our Logic
  5. 13:01Application Flow
  6. 16:36Introducing a Wrapper Type
  7. 22:09Compiler Errors
  8. 24:20Using Json Decode Map
~/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.