
Choose few-shot examples that teach the boundary
Choose few-shot examples that explain a decision boundary, include near misses, and preserve a separate holdout for evaluating the prompt.
The journal / Ideas in progress
Engineering & everyday learningSoftware, systems, and the things I’m learning along the way. From first principles to AI in production.
Find something to readA little theory. A lot of practice.

Choose few-shot examples that explain a decision boundary, include near misses, and preserve a separate holdout for evaluating the prompt.

Trace a link color through layers, inline styles, specificity and scope with six reversible experiments before adding CSS overrides.

Use an exclusive prefix array to answer interval sums consistently, including empty ranges and negative values, and identify when updates make it unsuitable.

Precompute power-of-two range minima and answer each query with two overlapping blocks, then show exactly why the same shortcut double-counts sums.

Trace a modal dialog through focus, keyboard and accessibility-tree checks in Chromium, then define the remaining Electron and screen-reader checks.

Three invoice fractions show rounding stage and exact decimal input. A worked analytical example with explicit assumptions and checked results.

Build a shareable GET search before adding asynchronous results, with consistent server filtering, history behavior and keyboard feedback.

Design a calendar-search tool with explicit timezone, interval boundaries, pagination, and access rules so model-generated arguments have one meaning.

Give Claude Code a reproducible TypeScript repair, inspect the resulting behavior, and verify a patch without relying on a confident completion message.

Ask precise backend review questions about identity, partial updates and external effects, even while learning the codebase.

Relax the document wrapper’s automatic flex minimum, inspect action containment, and add wrapping plus a keyboard-accessible full filename.

Read trust, caller and session policies separately, then run a local model that distinguishes resource permission limits from a temporary session expiration.