A notebook for readable changes

Leave a trail through the change.

A useful development note helps someone understand what moved, why it moved, and where to look next. This journal explores small habits that make code changes easier to read long after the original problem has faded.

Read the field guide

Start with the behaviour.

Describe the thing a reader could actually notice: a list loses its selected item after sorting, or an empty search looks like a failure. That sentence gives the investigation a boundary.

Keep the symptom separate from its suspected cause. “The selection disappears” is an observation. “The cache is broken” is a theory that still needs a patient look.

Make the smallest useful comparison.

Choose a case that works and a nearby case that does not. Compare their inputs, the point where they diverge, and the state each leaves behind.

For the sorting example, keep the same items and change only their order. A narrow comparison can reveal an assumption that a broad rewrite would quietly hide.

Write the decision beside its cost.

A change may preserve an item by identity instead of position. The useful note explains why that matches the intended behaviour and which unusual cases still deserve attention.

Record an alternative when it affected the decision. A short explanation of why a local workaround was rejected is more durable than a list of every idea considered.

Observed
The selected label vanishes after reordering; the underlying item remains in the collection.
Chosen
Track selection using the item’s stable identity, with an explicit empty state when that item is removed.
Checked
Compare sorting, filtering, and removal separately so their intended outcomes remain clear.

End with a way to return.

A finished note should tell the next reader what evidence would reopen the question. Name the behaviour to watch, rather than promising that the problem can never recur.

Leave a reproduction description that another person can follow with ordinary sample data. Its purpose is to preserve understanding, not to recreate the whole debugging session.

What changed for the reader?

Lead with behaviour before naming files or internal abstractions. Readers need a reason to care about the mechanism.

Which assumption mattered?

Name the assumption about order, absence, timing, or identity that made the old behaviour possible.

What remains open?

An honest boundary makes the note easier to trust. State an unresolved case with enough detail to revisit it.

Make the next change easier to understand.

Try the field guide with one small change. Write the observation first, then keep only the evidence that helps explain the decision.

Open the practical guide