TS
TypeScript — Advanced
Master the type system, validate data at runtime, understand the Node.js event loop and streams, and structure, harden and ship production-grade TypeScript services.
Lessons
- 1Advanced Types: Mapped, Conditional & Template LiteralCompute new types from existing ones with keyof, mapped and conditional types.
- 2Utility Types & the satisfies OperatorPartial, Pick, Omit, Record, ReturnType, Awaited — and safer config with satisfies.
- 3Runtime Validation with ZodTypes disappear at runtime — validate external data and infer types from schemas.
- 4The Event Loop, Concurrency & Worker ThreadsHow Node.js schedules work, why CPU-heavy code blocks it, and how to fix that.
- 5Streams & Processing Large DataProcess files and network data piece by piece with streams and pipeline.
- 6Application Architecture & Dependency InjectionSeparate routes, services and data access so code stays testable as it grows.
- 8Caching & Rate LimitingSpeed up repeated reads with a TTL cache and HTTP caching headers, and protect the API with rate limits.
- 9Production: Build, Configure, Observe & DeployCompile for production, log properly, shut down gracefully and ship with Docker.
- 10Project: Results Portal APIPut it all together: a PostgreSQL-backed API with validated config, login, roles, parent access, upserts, cached rankings and integration tests.