I'll Be Backend
Principles

Rename for Intent: Meaningful Variable Names

Renaming for intent means giving every variable, field and number a name that says what it means, so the code explains itself. Short names and bare numbers force the next reader to guess, and a wrong guess turns a small change into a bug. These lessons rename a library's late-fine calculation step by step until adding a grace period is a one-line change.

Pick your language

When to use it

Use it when

You have to read a method's body to learn what one of its names means.

Skip it when

A short name lives in a tiny scope and is already clear, like i in a three-line loop.

Spot it by

Single letters, names like data, flag or calc, bare numbers, and comments that explain what a variable holds.