~/talk

Why static types in Javascript? — Preethi Kasireddy

Talkat JAMstack Conf 2017 · 2017-05-24..05-26· [typescript, javascript]
slides:none on file

Argues that adding static types to JavaScript prevents whole classes of runtime bugs (type errors, null exceptions), documents function contracts, and reduces validation and some unit tests while enabling safer refactors. Demonstrates Flow (checker only) and TypeScript (checker + transpiler), shows interfaces, generics, optional properties, discriminated unions, and noImplicitNull. Gives a concrete Coinbase example where typed signatures clarify three-argument payout logic. Notes costs: added verbosity, learning curve, and slower prototyping for short‑lived code.

AI-written summary · about

  1. 0:00Introduction
  2. 1:00Static vs Dynamic Typing
  3. 3:10JS Typing Tools and Syntax
  4. 5:51Special TypeScript Types
  5. 7:25Interfaces and Shapes
  6. 9:06Type Inference and Aliases
  7. 11:05Unions and Discriminated Unions
  8. 13:43Generics in TypeScript
  9. 15:03Benefits of Static Types
  10. 21:59Trade-offs and Costs
  11. 24:06When to Use Static 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.