Global variables (if any) are long explicit phrases while inner loop variables can be a single letter.
Without taking scope into account the naming guidelines become dogmatic and impractical trivia.
EDIT: wording
Global variables (if any) are long explicit phrases while inner loop variables can be a single letter.
Without taking scope into account the naming guidelines become dogmatic and impractical trivia.
EDIT: wording
I actually really like reading/writing code that uses really small variable names but are still very obvious given it's context (usually never acronyms though, I despise those). I'd always rather working with something small like p1 rather than something very descriptive like sceneOffsetPoint1, especially if I can read the code above it that shows it being assigned based from the scene center point: let p1 = scene.center + Point(2,3);
It's much more readable and you're less likely to get name clashes with other functions (r could be lots of things (even in the same file) - render, record, row, red, right)
for (let thing of things) {...} for (let particularThing of things)
or at least visibly different: for (let th of thigns)