Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Signature-Driven Design

This segment should take about 70 minutes. It contains:

Slide / ExerciseDuration
The Skeleton Is the Spec10 minutes
Getting to a Skeleton: The Design Interview10 minutes
Reading a Signature as a Contract3 minutes
The Promises in a Signature5 minutes
Ownership in Signatures10 minutes
Fallibility in Signatures7 minutes
Flexibility in Signatures10 minutes
Traits as Extension Points5 minutes
Exercise: One Task, Two Skeletons10 minutes

In an agent-assisted codebase, the most valuable artifact a human writes is the skeleton: the structs, enums, function signatures, and trait signatures, with bodies left as todo!(). In this segment we look at how each part of a signature constrains generated code, and how to review signatures before reviewing bodies.