~/talk

Flow - Am I Your Type?

Talkat NDC Oslo 2017 · 2017-06-14..06-16· [javascript, typescript]
slides:none on file

Flow is an open source static type checker from Facebook that finds JavaScript type errors via inference and gradual annotations, integrates with Babel and ESLint, and runs a background flow server to track types. Key claims: Flow catches errors without full annotations, supports React/JSX, and lets Babel strip types at build time. Practical demo wires npm scripts, flow-typed defs (about 570 available vs TypeScript’s ~2,000), uses lodash and a small file-processing module (liner) and runs successfully after flow and Babel strip types.

AI-written summary · about

  1. 0:00Intro
  2. 2:07Outline
  3. 2:40Static vs. Dynamic
  4. 3:08Why Use Types?
  5. 4:24Why Avoid Types?
  6. 5:32Flow Overview
  7. 6:54TypeScript Overview
  8. 10:03Comparing Flow & TypeScript
  9. 11:40Installing Flow
  10. 12:06Running Flow
  11. 13:05Type Suggestions
  12. 13:47Executing Code With Types ...
  13. 15:33Flow Analysis Example
  14. 16:29Uninitialized References
  15. 17:50Flow Types
  16. 18:59Maybe Type
  17. 21:26Basic Types Example
  18. 22:13Builtin Types
  19. 24:16Functions
  20. 25:52Arrays
  21. 27:22Objects
  22. 29:38Classes
  23. 34:06Unions For Enums
  24. 35:42Sharing Type Aliases Example
  25. 36:59Escape Hatch
  26. 37:40Flow Server ...
  27. 40:56Flow Project Checklist
  28. 42:03Dev Dependencies
  29. 43:30Recommended npm Scripts
  30. 44:53Babel Setup
  31. 45:11flowconfig File
  32. 47:44flow-typed
  33. 48:48Editor/IDE Setup...
  34. 49:46Sample Project
  35. 50:45Project Dependencies
  36. 51:04The Code ...
  37. 53:49Summary
  38. 55:01Bonus Slides
  39. 55:35Nominal vs. Structural Typing
  40. 56:59Variance in Flow & TypeScript
  41. 57:50Soundness vs. Correctness
~/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.