Signature-Driven Design
This segment should take about 70 minutes. It contains:
| Slide / Exercise | Duration |
|---|---|
| The Skeleton Is the Spec | 10 minutes |
| Getting to a Skeleton: The Design Interview | 10 minutes |
| Reading a Signature as a Contract | 3 minutes |
| The Promises in a Signature | 5 minutes |
| Ownership in Signatures | 10 minutes |
| Fallibility in Signatures | 7 minutes |
| Flexibility in Signatures | 10 minutes |
| Traits as Extension Points | 5 minutes |
| Exercise: One Task, Two Skeletons | 10 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.