Crafting Reliable and Testable Code with TypeScript
summary
Shows concrete patterns and code: TypeScript + Swagger for self‑documenting APIs, a local weather app with a mocked service that returns 32 to prove unit test behavior, small exported helpers like create jwt function and a pagination utility instead of pulling a library, enums replacing string literals, interfaces and abstract auth service enabling multiple providers, and test setups that spy on URLs. Demonstrations run end to end and unit tests remain fast, isolated, repeatable.
AI-written summary · about
chapters (21)
- 0:00Intro
- 0:11Crafting Reliable
- 2:46Reliable Engineering Best Practices
- 3:10Benefits of TypeScript • JavaScript at scale
- 3:45JavaScript Feature Gap
- 4:58CONTEXT SWITCHING LEADS TO ANGER
- 5:27High Cohesion - Low coupling
- 9:25Self-documenting code
- 12:35Test Driven Development
- 13:13FIRST principle
- 13:33Mike Cohn's Testing Pyramid
- 14:31Isolating Dependencies
- 21:05Interface Segregation
- 21:47TypeScript enables SOLID code
- 22:31User Interface
- 22:41Interface Tips
- 24:19User Model
- 24:57Stateless Code
- 26:08Imperative
- 26:38Reactive
- 28:04Write unit testable code Manage complexity
related talks
34mNot Your Uncle’s Clean Code (TypeScript Edition)
01h 01mAdvanced TypeScript Type Utilities
40mHow to model your crazy data in TypeScript
22mThink you know TypeScript? Think again.
01h 01mDeconstructing TypeScript’s Type System
11mThe Joy of Typescript
33mEnd-to-End Type Safety with Swagger and TypeScript
48mDeep Dive into Advanced TypeScript: A Live Coding Expedition
