~/talk

Stringly-Typed to Strongly-Typed with TypeScript

Talkat DDD Perth 2021 · on Saturday, 2021-08-14· [typescript]
links:none on file
slides:none on file

Argues that TypeScript shifts common stringly-typed failures into compile-time errors by using literal and union types, branded types for distinguishing semantic strings (absolute vs relative paths), and discriminated unions plus type guards for exhaustive control flow. Shows concrete rewrites: template strings → TSX for checked bindings, positional params → named options objects, env parsing centralized in a single config. Result is fewer runtime surprises, earlier failures during builds, and far less brittle refactoring across code that still uses strings.

AI-written summary · about

  1. 0:00Introduction
  2. 0:12Who am I
  3. 1:13Who are you
  4. 2:41What is this talk about
  5. 4:01What is StringlyTyped
  6. 5:45StringlyTyped Errors
  7. 9:46Static Checks
  8. 11:53Dynamic Languages
  9. 15:28Common Ground
  10. 16:25Types
  11. 19:13TypeScript
  12. 22:50Type Systems
  13. 26:17Type Systems in TypeScript
  14. 27:50StringlyTyped Examples
  15. 32:11Absolute Paths
  16. 37:12Conflicting Definitions
  17. 39:17Single Source of Truth
  18. 40:02Brittle Control Flow
  19. 41:09No More Strings
  20. 41:55Enumeration
  21. 42:44Discrimination Union
  22. 43:52Conclusion
~/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.