~/talk

Interfaces vs Wild: Building safer interfaces with TypeScript and FP

Talkat Wey Wey Web 2022 · 2022-12-15..12-16· [typescript, functional-programming]
links:none on file
slides:none on file

Claim: TypeScript plus a functional style reduces bugs by making functions pure, avoiding mutations, and surfacing errors at compile time. Examples include converting impure time checks into pure functions, using readonly and the spread operator to avoid reference mutations, using produce (immer) to edit nested data without deep copies, wrapping calls into a try-style generic that returns { success, data | error }, and composing transforms with fpts to build readable, testable interface code.

AI-written summary · about

  1. 0:00Introduction and context
  2. 2:16Pure functions in FP
  3. 5:54Immutability and mutations
  4. 16:48Higher order functions
  5. 23:19Encapsulation techniques
  6. 25:49Functional composition
  7. 28:58Pipe operator explained
  8. 29:42Closing and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.