Skip to content

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.

  1. Structs and Value Semantics25 min · Read, predict and practice
  2. Equality and Hash Codes25 min · Read, predict and practice
  3. Record Structs and Object Initialization25 min · Read, predict and practice
  4. 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.

  1. Variance25 min · Read, predict and practice
  2. Static Abstract Members and Generic Math25 min · Read, predict and practice
  3. Closed Hierarchies25 min · Read, predict and practice
  4. Checkpoint: An Expression Evaluator30 min · Independent checkpoint

Day 3 · About 115 minutes

Async Foundations

Compose tasks, handle their failures and cancel work cooperatively.

  1. Tasks and await25 min · Read, predict and practice
  2. Running Tasks Together25 min · Read, predict and practice
  3. Cancellation and Timeouts25 min · Read, predict and practice
  4. 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.

  1. Asynchronous Streams25 min · Read, predict and practice
  2. Channels25 min · Read, predict and practice
  3. Backpressure25 min · Read, predict and practice
  4. Checkpoint: A Processing Pipeline40 min · Independent checkpoint

Day 5 · About 115 minutes

Memory and Performance

Measure allocations, slice with spans and clean up deterministically.

  1. Span and Slices25 min · Read, predict and practice
  2. Measuring and Reducing Allocations25 min · Read, predict and practice
  3. Resource Lifetimes30 min · Read, predict and practice
  4. Checkpoint: A Fast Record Parser35 min · Independent checkpoint

Day 6 · About 110 minutes

Library Boundaries

Design events, attributes, composition roots and deterministic async tests.

  1. Events and Callbacks25 min · Read, predict and practice
  2. Attributes and Reflection25 min · Read, predict and practice
  3. Designing a Library Boundary25 min · Read, predict and practice
  4. 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.

  1. Project Brief: Job Runner15 min · Read, predict and practice
  2. Assemble the Job Runner20 min · Read, predict and practice
  3. Test the Job Runner20 min · Read, predict and practice
  4. Extend and Download the Runner20 min · Read, predict and practice
  5. On Your Own: A Link Checker45 min · Independent checkpoint
  6. Come Back Later30 min · Extra delayed review