Naming rule: The larger the scope, the longer the name


Naming rule: The larger the scope, the longer the name.

If it's a global variable, "i" is a bad name.

If it's only in scope for a loop, "i" may be a fine name.

View original on X