Variables should have the tiniest scope possible. I avoid global variables as much as possible. There are some specific cases like data areas and compile time arrays where the compiler dictates that it has to be global but that’s it.
I try to give variables meaningful names written as camelCase. Where too long names makes them harder to use and too short names harder to understand the meaning of the variable.