C# / Advanced · Free public pilot
Advanced C# in 7 Days
Build concurrent, cancellable programs with precise guarantees, then prove them with deterministic tests. Read, predict, run, change and explain each program.
Start your first lesson →Build on Intermediate C#. Take your own time.
Know interfaces, generics, delegates, LINQ, pattern matching and fakes first. No account or installation required. Allow about two hours per day including practice; these are author estimates. Split days across sessions freely.
All 30 lessons are open as a pilot. C# 14 compiles with the real Roslyn compiler and runs on .NET WebAssembly in code-playpad, which is experimental. The first Run downloads about 14 MB, then caches the compiler. Input must be supplied before Run, and files last only for one Run. 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.
Learn structs and equality, variance, generic math, tasks, cancellation, async streams, channels, spans and resource cleanup, then build a concurrent job runner. This browser runtime runs on one thread: await and Task.WhenAll work, but creating a Thread or blocking with .Wait() or .Result throws. Lessons say where that differs from a local .NET install.
Day 1 · About 115 minutes
Precise Types
Choose structs, records and required members, and define equality correctly.
- Structs and Value Semantics25 min · Read, predict and practice
- Equality and Hash Codes25 min · Read, predict and practice
- Record Structs and Object Initialization25 min · Read, predict and practice
- Checkpoint: A Money Type40 min · Independent checkpoint
Day 2 · About 105 minutes
Advanced Generics and Hierarchies
Use variance, generic math and closed hierarchies with exhaustive switches.
- Variance25 min · Read, predict and practice
- Static Abstract Members and Generic Math25 min · Read, predict and practice
- Closed Hierarchies25 min · Read, predict and practice
- Checkpoint: An Expression Evaluator30 min · Independent checkpoint
Day 3 · About 115 minutes
Async Foundations
Compose tasks, handle their failures and cancel work cooperatively.
- Tasks and await25 min · Read, predict and practice
- Running Tasks Together25 min · Read, predict and practice
- Cancellation and Timeouts25 min · Read, predict and practice
- Checkpoint: Retry with Backoff40 min · Independent checkpoint
Day 4 · About 115 minutes
Streams and Channels
Process data as async streams and limit work with bounded channels.
- Asynchronous Streams25 min · Read, predict and practice
- Channels25 min · Read, predict and practice
- Backpressure25 min · Read, predict and practice
- Checkpoint: A Processing Pipeline40 min · Independent checkpoint
Day 5 · About 115 minutes
Memory and Performance
Measure allocations, slice with spans and clean up deterministically.
- Span and Slices25 min · Read, predict and practice
- Measuring and Reducing Allocations25 min · Read, predict and practice
- Resource Lifetimes30 min · Read, predict and practice
- Checkpoint: A Fast Record Parser35 min · Independent checkpoint
Day 6 · About 110 minutes
Library Boundaries
Design events, attributes, composition roots and deterministic async tests.
- Events and Callbacks25 min · Read, predict and practice
- Attributes and Reflection25 min · Read, predict and practice
- Designing a Library Boundary25 min · Read, predict and practice
- Checkpoint: Testing Async Code35 min · Independent checkpoint
Day 7 · About 120 minutes
Ship the Job Runner
Test, extend and download a concurrent job runner, then solve a fresh brief.
- Project Brief: Job Runner15 min · Read, predict and practice
- Assemble the Job Runner20 min · Read, predict and practice
- Test the Job Runner20 min · Read, predict and practice
- Extend and Download the Runner20 min · Read, predict and practice
- On Your Own: A Link Checker45 min · Independent checkpoint
- Come Back Later30 min · Extra delayed review