07

Rename Variable


Goal

Variable names match the domain role they play, not their implementation type or scratch nature.

Before the refactoring
const a = height * width;
After the refactoring
const area = height * width;
Savings

Reading the variable's name tells you everything you need without checking its definition.

Note

A rename is small but cross-file; ensure your tooling catches every reference (including string templates and comments).