Skip to content

C++ / Advanced · Free public pilot

Advanced C++ in 7 Days

Build a foundation and a typed event-processing engine. Read, predict, run, change and explain each program.

Start your first lesson →

Build on C++ intermediate. Take your own time.

Know validated classes, maps, algorithms, explicit results, moves, borrowed views and basic templates first. No C course, account or installation required. Allow about two and a half hours per day including practice, with On Your Own (about an hour) and the final review on Day 7 as extras; these are author estimates. Split days across sessions freely. Seven days builds a foundation, not mastery.

All 30 lessons are open as a pilot. C++20 compiles with real Clang in code-playpad. The first Run downloads about 30 MB, then caches the compiler. Input must be supplied before Run; this browser runtime offers stdin, stdout and stderr, not persistent files. Stop ends a long run.

Each day ends with independent practice. Hints offer an idea, then a first step, before a worked solution. Day 7 includes a downloadable project and optional local instructions. Completion is saved only in this browser. Return a few days later for the final review.

Model events with variant, own runtime rules with unique_ptr and constrain generic helpers. Stage complete batches before committing. Test exact exports, reference-model agreement and rejected changes. Exceptions and threads are not supported by this browser runtime; the course uses explicit success/failure results.

Day 1 · About 140 minutes

Model Alternatives Precisely

Represent typed events and handle every alternative explicitly.

  1. Give Each Event Its Own Data35 min · Read, predict and practice
  2. One Event with Several Alternatives35 min · Read, predict and practice
  3. Handle Every Alternative Explicitly35 min · Read, predict and practice
  4. Checkpoint: A Typed Event Operation35 min · Independent checkpoint

Day 2 · About 140 minutes

Resource-Owning Abstractions

Own interchangeable rules with move-only smart pointers.

  1. Own a Resource with unique_ptr35 min · Read, predict and practice
  2. Transfer Move-Only Ownership35 min · Read, predict and practice
  3. A Small Runtime Rule Interface35 min · Read, predict and practice
  4. Checkpoint: Prove Rule Destruction35 min · Independent checkpoint

Day 3 · About 140 minutes

Constrain Reusable Operations

Express callable requirements and test compile-time contracts.

  1. Deduce a Callable Type35 min · Read, predict and practice
  2. State Requirements with Concepts35 min · Read, predict and practice
  3. Read and Test Compile-Time Failures35 min · Read, predict and practice
  4. Checkpoint: A Constrained Batch Helper35 min · Independent checkpoint

Day 4 · About 145 minutes

Transactional State Changes

Reject an entire failing batch without changing live state.

  1. Stage Changes Before Publishing35 min · Read, predict and practice
  2. Validate Against Earlier Events in the Batch35 min · Read, predict and practice
  3. Return the Failed Event Index35 min · Read, predict and practice
  4. Checkpoint: An All-or-Nothing Batch40 min · Independent checkpoint

Day 5 · About 145 minutes

Data Boundaries and Lifetime

Parse borrowed text into owned events and export canonical results.

  1. Borrow a Contiguous Batch with span35 min · Read, predict and practice
  2. Parse Borrowed Text into Owned Events35 min · Read, predict and practice
  3. Canonical Events and Deterministic Reports35 min · Read, predict and practice
  4. Checkpoint: Safe Import and Replay40 min · Independent checkpoint

Day 6 · About 145 minutes

Test Public Guarantees

Combine type checks, a reference model and mutation evidence.

  1. Test the Public Type Interface35 min · Read, predict and practice
  2. Compare with an Independent Model35 min · Read, predict and practice
  3. Generate Reproducible Event Sequences35 min · Read, predict and practice
  4. Checkpoint: Detect Broken Guarantees40 min · Independent checkpoint

Day 7 · About 175 minutes

Ship the Event Engine

Run, test, extend and download a reusable transactional engine.

  1. The Typed Event Engine Brief25 min · Read, predict and practice
  2. Assemble the Event Engine30 min · Read, predict and practice
  3. Test Type, Ownership and Transaction Guarantees30 min · Read, predict and practice
  4. Extend and Download the Engine30 min · Read, predict and practice
  5. On Your Own: A Transactional Booking Engine60 min · Independent checkpoint
  6. Come Back Later30 min · Extra delayed review