~/talk

Why You Should Care About Types

Talkat PyConZA 2019 · 2019-10-09..10-11· [python, typescript]
links:none on file
slides:none on file

Argues that adding type annotations makes large Python codebases easier to read, speeds onboarding and prevents guesswork; shows incremental workflow that types a few utility modules first, gates checks in CI, and uses MonkeyType to collect runtime signatures and bootstrap 20–30% in a day of annotations. Compares type checkers and claims Pyre runs minutes faster than mypy on huge repos (example: 5 min → 45 s), demonstrates protocols for duck typing and recommends dataclasses/namedtuples for JSON.

AI-written summary · about

  1. 0:00Intro
  2. 0:11whoami
  3. 5:19What jobs?
  4. 9:37Scale my team @FB
  5. 12:08Are Python types Pythonic?
  6. 13:22Is Python turning into Java?
  7. 15:36How did it start? • PEP 3107 - Function Annotations (2006) By Collin Winter and Tony Lownds
  8. 16:23What needs to be annotated?
  9. 18:20Collections
  10. 19:27Unions
  11. 23:21The Type Checker
  12. 25:39The Easy Bit New projects
  13. 26:40The Hard Part Existing (Large) Projects
  14. 28:46The Hard Part Bit Existing (Large) Projects
  15. 31:28Stubs
  16. 32:03Monkey Type
  17. 34:38Where did the ducks end up? Duck typing in the typed world
  18. 35:50Protocols
  19. 37:27The Typeshed
  20. 39:04#type: ignore
  21. 44:44Summary Type annotations are Pythonic
~/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.