~/talk

Type Systems Will Make You a Better JavaScript Developer

Talkat React Conf 2017 · on Monday, 2017-03-13· [javascript]
slides:none on file

Claim: adding a static checker makes JavaScript safer and changes how code is written. Evidence: Flow (and TypeScript) runs ahead of time, finds real bugs in production JS used to bridge native webviews at KH Academy after about a year of use, while web frontend teams adopt it in the past couple of months. Compared alternatives: linters, runtime asserts, and react prop types are useful but limited. Concrete benefits: fewer implicit invariants, simpler APIs, explicit state machines; main cost is tricky integration.

AI-written summary · about

  1. 0:00Intro
  2. 1:18What is a Type
  3. 2:16Type Errors
  4. 5:48Linters
  5. 6:27Runtime Type Checking
  6. 8:17Static Type Checking
  7. 9:55Flow
  8. 12:04Clever Code
  9. 14:12Invariants
  10. 16:57Example
  11. 17:28Naive State
  12. 18:49Enumeration
  13. 19:51Writing Types First
~/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.