Chapter 14: Developer Experience
A library, a command-line tool, or a coding agent succeeds only when a person can predict what it will do, check that it did it, and correct it when it did not. Developer experience is the name for that loop. This chapter studies it through published interfaces and runnable examples, not through opinion.
Concepts from other sections (3)
This section uses these ideas. Each has a short definition and a link to the section that explains it in full. Tap a dotted term in the text to preview it.
- Proposed change: an edit shown for review that has not been applied. Read more: 14.1 Reviewing an agent’s work
- General-purpose interface: one operation that serves several callers, so that no caller rebuilds it. Read more: 14.3 Small interfaces that do real work
- Error contract: what a function promises about when it fails and what the caller receives. Read more: 14.3 Small interfaces that do real work
The chapter has two halves. The first studies how people review work that a tool or an agent did for them: which evidence they need, where it should sit, and how a correction reaches the right target. The second studies how people learn an API: a runnable example beside its source, one value to change, and a signature that tells the caller what can fail.
Learning objectives
- Name the evidence a reviewer needs before accepting an agent’s change: the target, the change, and the check that supports it.
- Distinguish a proposed change from an applied one, and tie an undo action to one specific change.
- Design a first example that a reader can run, change in one place, and verify by its output.
- Judge an interface by the work it leaves to its callers, not by the size of its signature.
- Make each intermediate value in a pipeline inspectable, including the exact request sent to a model.
Before you begin
Section titled “Before you begin”Read The Pragmatic Programmer and Documentation Writing first. The examples use Go, Rust, jq, and uv. Each example states its expected output, so you can read the chapter without running them.
Sections
Section titled “Sections”| Section | Question it answers |
|---|---|
| Reviewing an agent’s work | What does a reviewer need to see to accept, reject, or steer a change? |
| Learning an API by editing it | How does an example move a reader from “it runs” to “I changed it and know why”? |
| Small interfaces that do real work | How do a signature and its errors teach the caller what to do? |
| Inspecting a pipeline into a model | How do you see what a model actually received? |
Primary sources
Section titled “Primary sources”- Saleema Amershi and colleagues, Guidelines for Human-AI Interaction, an empirical basis for testing the ideas in the first half.
- John Ousterhout, A Philosophy of Software Design, chapter 6 extract, on general-purpose interfaces.
- Rob Pike, Errors are values, on error contracts a caller can use.