Skip to content

C / Advanced · Free public pilot

Advanced C in 7 Days

Build a foundation and a streaming telemetry decoder. Read, predict, run, change and explain each program.

Start your first lesson →

Build on C intermediate. Take your own time.

Know dynamic storage, ownership, callbacks, checked parsing and allocation failure tests first. No C++ knowledge, account or installation required. Allow about two and a half to three hours per day including practice; these are author estimates. On Day 7, On Your Own (about two hours) and the final review are extra. Split days across sessions freely. Seven days builds a foundation, not mastery.

All 30 lessons are open as a pilot. C17 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.

Build a bounded binary codec and streaming state machine. Practice opaque APIs, byte order, borrowed input, progress results and sticky errors. Sanitizers, debugger use and local file streams are optional extensions. The browser course uses prefilled stdin and stdout.

Day 1 · About 165 minutes

Opaque APIs and Lifetimes

Hide representation and specify ownership across an API.

  1. Hide Representation with an Opaque Type40 min · Read, predict and practice
  2. Creation and Destruction Contracts40 min · Read, predict and practice
  3. Borrow Input, Own Results40 min · Read, predict and practice
  4. Checkpoint: A Small Opaque Handle45 min · Independent checkpoint

Day 2 · About 170 minutes

Bytes and Portable Encoding

Encode a wire format without relying on native struct layout.

  1. Bytes Are Not Text or Structs40 min · Read, predict and practice
  2. Read and Write Big-Endian Fields40 min · Read, predict and practice
  3. Masks, Shifts and Checked Arithmetic40 min · Read, predict and practice
  4. Checkpoint: Encode a Header50 min · Independent checkpoint

Day 3 · About 165 minutes

Validate Complete Frames

Reject malformed frames before publishing decoded records.

  1. A Checked Byte Cursor40 min · Read, predict and practice
  2. Validate Length Before Payload40 min · Read, predict and practice
  3. A Checksum Is Evidence, Not Authentication40 min · Read, predict and practice
  4. Checkpoint: A Complete Reading Frame45 min · Independent checkpoint

Day 4 · About 165 minutes

Decode Incrementally

Decode the same records from arbitrary input chunks.

  1. Make Decoder States Explicit40 min · Read, predict and practice
  2. Report Exactly What Was Consumed40 min · Read, predict and practice
  3. Partial Input and End-of-Stream40 min · Read, predict and practice
  4. Checkpoint: Chunk-Independent Decoding45 min · Independent checkpoint

Day 5 · About 185 minutes

Resources and Failure Boundaries

Bound storage and prove cleanup, failure and reset behavior.

  1. Bound Storage Before Input Arrives40 min · Read, predict and practice
  2. Control Resource Failure in Tests40 min · Read, predict and practice
  3. Publish Caller-Owned Values45 min · Read, predict and practice
  4. Checkpoint: Sticky Error and Reset60 min · Independent checkpoint

Day 6 · About 165 minutes

Prove the Decoder Guarantees

Test fixtures, truncation, partitions and implementation mutations.

  1. Known Bytes Beat Matching Mistakes40 min · Read, predict and practice
  2. Properties Across Inputs and Chunks40 min · Read, predict and practice
  3. Test Every Short Input40 min · Read, predict and practice
  4. Checkpoint: Tests That Catch Broken Contracts45 min · Independent checkpoint

Day 7 · About 280 minutes

Ship the Telemetry Library

Run, test, extend and download a streaming decoder and application.

  1. The Telemetry Decoder Brief30 min · Read, predict and practice
  2. Assemble the Streaming Decoder40 min · Read, predict and practice
  3. Challenge the Decoder Guarantees40 min · Read, predict and practice
  4. Extend and Download the Telemetry Library50 min · Read, predict and practice
  5. On Your Own: A Framed Message Decoder120 min · Independent checkpoint
  6. Come Back Later35 min · Extra delayed review