Live Coding: Eliminating Redundant Runtime Checks with Config as Code&Type in TypeScript
watch on portal.gitnation.org ↗https://portal.gitnation.org/contents/live-coding-eliminating-redundant-runtime-checks-with-config-as-codeandtype-in-typescriptsummary
Shows how to treat runtime configuration as typed code in TypeScript to move validation to build time: uses an Express example that fetches products per market, defines a repository-style config of markets, sellers and locales, derives TypeScript types from that config, and uses those types to validate market keys, seller locales and product routing so many redundant runtime checks can be removed and branches get early feedback during development and testing.
AI-written summary · about
related talks
34mNot Your Uncle’s Clean Code (TypeScript Edition)
59mA Deep Dive into Advanced TypeScript: A Live Coding Expedition
48mDeep Dive into Advanced TypeScript: A Live Coding Expedition
44mA Deep Dive Into Advanced Typescript: A Live Coding Expedition
44mA Deep Dive Into Advanced TypeScript: A Live-Coding Expedition
11mThe Joy of Typescript
44mA Deep Dive Into Advanced TypeScript - A Live Coding Expedition
21mThe long-tail of type safety