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.
- Give Each Event Its Own Data35 min · Read, predict and practice
- One Event with Several Alternatives35 min · Read, predict and practice
- Handle Every Alternative Explicitly35 min · Read, predict and practice
- Checkpoint: A Typed Event Operation35 min · Independent checkpoint
Day 2 · About 140 minutes
Resource-Owning Abstractions
Own interchangeable rules with move-only smart pointers.
- Own a Resource with unique_ptr35 min · Read, predict and practice
- Transfer Move-Only Ownership35 min · Read, predict and practice
- A Small Runtime Rule Interface35 min · Read, predict and practice
- Checkpoint: Prove Rule Destruction35 min · Independent checkpoint
Day 3 · About 140 minutes
Constrain Reusable Operations
Express callable requirements and test compile-time contracts.
- Deduce a Callable Type35 min · Read, predict and practice
- State Requirements with Concepts35 min · Read, predict and practice
- Read and Test Compile-Time Failures35 min · Read, predict and practice
- 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.
- Stage Changes Before Publishing35 min · Read, predict and practice
- Validate Against Earlier Events in the Batch35 min · Read, predict and practice
- Return the Failed Event Index35 min · Read, predict and practice
- 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.
- Borrow a Contiguous Batch with span35 min · Read, predict and practice
- Parse Borrowed Text into Owned Events35 min · Read, predict and practice
- Canonical Events and Deterministic Reports35 min · Read, predict and practice
- 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.
- Test the Public Type Interface35 min · Read, predict and practice
- Compare with an Independent Model35 min · Read, predict and practice
- Generate Reproducible Event Sequences35 min · Read, predict and practice
- 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.
- The Typed Event Engine Brief25 min · Read, predict and practice
- Assemble the Event Engine30 min · Read, predict and practice
- Test Type, Ownership and Transaction Guarantees30 min · Read, predict and practice
- Extend and Download the Engine30 min · Read, predict and practice
- On Your Own: A Transactional Booking Engine60 min · Independent checkpoint
- Come Back Later30 min · Extra delayed review