Skip to main content
REFACTORING-BASICS5 MIN READ

Naming and Intention Pocket Cards

Recall naming moves that reveal intention during refactoring.

Rename test What should a renamed variable reveal? The role the value plays in the current decision. elapsedTrialDays beats days when the decision is about trial extension. Name quality Mechanic name or intention name? Prefer names that help the next change, not names that merely describe syntax. Bikeshed guard Can we stop debating names and ship? Use when naming discussion is drifting. Your response Agreed. Let us choose the name that best supports the next known change: distinguishing trial days from billing days. Do not argue for your favorite word. Anchor naming to the change it clarifies. It turns a…

Read the full lesson

Sign up free — one personalized lesson every day, matched to your role and goals.

Already have an account? Sign in

← Back to library
Contact us