TypeScript · Model reliable updates
Discriminated results, precise patches, deterministic sorting and exhaustive command reducers.
Prerequisite: TypeScript foundations and JavaScript arrays. · 100 minutes of guided study
4 published lessons, from first principles to a small project.
Start first lesson →What you’ll be able to do
- Apply commands through an explicit state machine
How to study this course
Follow the numbered modules. Read the example, explain why it works, attempt the exercise, then compare your result with the supplied checks.
Setup: A modern browser. JavaScript, TypeScript, Python and SQLite exercises run here; project workshops state their additional setup.
Times estimate guided reading and practice. Projects and revision can take longer.
Course syllabus · 4 lessons
1 · Model, solve and test
- Transform a discriminated result safely25 min · Browser exercise →
Transform a discriminated result safely
- Distinguish missing fields from falsy values25 min · Browser exercise →
Distinguish missing fields from falsy values
- Sort records with a deterministic tie-breaker25 min · Browser exercise →
Sort records with a deterministic tie-breaker
- Apply commands through an explicit state machine25 min · Browser exercise →
Apply commands through an explicit state machine