Workbench / Volume 2 Exercises: The Web Frontend
Volume 2 · Exercises
Volume 2 Exercises: The Web Frontend
Exercises that prove you understand each chapter from first principles: theory questions you answer in your own words, programs you build, run and measure, and integration tasks that combine everything covered so far. Every solution is hidden until you open it, and every programming solution shows real output from running it.
What each chapter's exercises hold
Theory (T)Questions you answer in your own words, from first principles
Programming (P)Programs you build, run and measure, with real output to compare against
Cumulative (C)Larger tasks combining the chapter with every earlier one
Senior (S)Production problems, after What the chapter leaves out
How to use this book
- Read the chapter first; the exercises point back to its sections by name.
- Write your answer in the box before opening anything. Hints unlock as your answer grows, and the solution after the second hint and a little thinking time.
- Run every programming exercise yourself and compare with the real output in the solution.
- Rate yourself after reading a solution, and tick an exercise Done only when you could do it again without help.
Mastery levels
L1 RecognitionDefine it and identify it.
L2 WorkingUse it correctly in code or config.
L3 InternalsExplain why it works.
L4 DebuggingDiagnose failures and performance problems.
L5 DesignChoose among competing approaches.
L6 ProductionOperate it under scale, failure, security and cost.
Languages used throughout
Java 21 · SpringC · C++ · Rust · Zig · GoPostgreSQL 16TypeScript · React · browserPython · PyTorchKubernetes · cloud · CI/CDLLMs · RAG · agents
How to use it: one entry per chapter, added as you read. Write or type your answer before opening a solution; tick an exercise Done only when you could do it again without help. Programming solutions were run on a Linux lab machine (Java 21, Python 3.13, GCC); timings on your laptop will differ, but the patterns should not.
Contents
- V2·12The Web PlatformExercises for Volume 2, chapter 12, with the volume's "Start Here: How the Web Works" chapter folded in: clients, servers and the three languages of…17 min
- V2·13HTMLExercises for Volume 2, chapter 13: elements, tags and attributes, the document skeleton and metadata (charset, viewport, language), text semantics…17 min
- V2·14CSSExercises for Volume 2, chapter 14: selectors, specificity, the cascade, !important, inheritance and cascade layers; values, units and custom…15 min
- V2·15JavaScriptExercises for Volume 2, chapter 15: primitives, types and coercion, var/let/const, objects and arrays, functions, destructuring, spread and rest…18 min
- V2·16TypeScriptExercises for Volume 2, chapter 16: TypeScript as an erasing type checker, the essential compiler options (strict, noUncheckedIndexedAccess…14 min
- V2·17DOM and Browser APIsExercises for Volume 2, chapter 17: traversal and querying (static vs live collections, closest and matches), creating and changing the DOM…15 min
- V2·18Browser InternalsExercises for Volume 2, chapter 18: the journey from URL to pixels, browser processes, sandboxing and site isolation, the rendering pipeline…13 min
- V2·19Frontend NetworkingExercises for Volume 2, chapter 19: HTTP semantics (methods, status codes, headers, idempotency), HTTP/1.1, HTTP/2 and HTTP/3 with QUIC, the browser…13 min
- V2·20AccessibilityExercises for Volume 2, chapter 20: who accessibility serves, WCAG 2.2 and POUR, semantic HTML, accessible names, labels and descriptions, keyboard…13 min
- V2·21UI ArchitectureExercises for Volume 2, chapter 21: UI as a function of state, components and their boundaries, composition, primitives, compound and headless…13 min
- V2·22ReactExercises for Volume 2, chapter 22: the React mental model, components, JSX, props, state, events, lists and keys, composition, the hooks (useState…14 min
- V2·23AngularExercises for Volume 2, chapter 23: Angular's batteries-included shape, standalone components and templates, binding and control flow, directives and…13 min
- V2·24Full-stack FrameworksExercises for Volume 2, chapter 24: where and when HTML is made (CSR, SSR, SSG, ISR and revalidation, streaming, partial prerendering, islands…14 min
- V2·25State ManagementExercises for Volume 2, chapter 25: classifying state (UI, form, URL, client, server, session, derived) and where it should live; client state tools…13 min
- V2·26Frontend TestingExercises for Volume 2, chapter 26: what to test and why; unit tests; component and integration tests with Testing Library; Vitest and Jest…14 min
- V2·27Frontend PerformanceExercises for Volume 2, chapter 27: why performance matters and how it's measured (lab vs field data), the Core Web Vitals (LCP, INP, CLS) and…14 min
- V2·28Frontend SecurityExercises for Volume 2, chapter 28: the browser threat model; XSS and framework escape hatches; DOM XSS sources and sinks; Content Security Policy…15 min
- V2·29PWAs, Workers and WebAssemblyExercises for Volume 2, chapter 29: what a progressive web app is; service workers in depth (lifecycle, updates, fetch handling); offline caching…15 min
- V2·30Build Tooling and MonoreposExercises for Volume 2, chapter 30: npm, pnpm and the package manager's job; version ranges, lockfiles and workspaces; ESM and CommonJS; package…13 min
- V2·31Frontend DeploymentExercises for Volume 2, chapter 31: static hosting, object storage, CDNs and SPA fallbacks; server-rendered frontends on Node runtimes, serverless…14 min
- V2·32Frontend ObservabilityExercises for Volume 2, chapter 32: why the frontend is a blind spot; frontend error tracking and source maps; real-user monitoring and Web Vitals in…15 min
- V2·33Frontend ProjectsExercises for Volume 2, chapter 33: checkpoints for the eight frontend projects that grow one tiffin-centre ordering product (an accessible static…14 min