Typing on Steroids: Avoiding Runtime Errors
summary
The talk addresses preventing runtime errors like "Cannot read properties of undefined" by changing how data is modeled rather than just adding validations. It shows how to use advanced typing techniques (TypeScript and stronger type constraints) to design data shapes that cannot be invalid, reducing conditional checks and catching bugs before runtime, with live coding examples for both beginners and experienced developers.
AI-written summary Β· about
chapters (14)
- 0:00Type safety introduction
- 1:11Alert scenario setup
- 2:35Live TypeScript coding
- 4:00Refining language types
- 5:01UUID patterns handling
- 7:51Alert use case definition
- 8:55Dependency inversion principle
- 10:39Branded types introduction
- 12:24Unknown languages handling
- 13:31Result pattern for errors
- 16:38Functional operators for results
- 17:22Key concepts recap
- 19:28Learning resources
- 20:09Closing
