I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
by convention, variable names should be all in uppercase.
A lot of scripts do that, so you could call it a convention, but generally you should only use ALL_CAPS_NAMES for environment variables or other stuff that's part of the shell's world. Variables local to scripts should be lower_snake_case to avoid collisions and hint that they're not going to have any effects outside the script.
A lot of scripts do that, so you could call it a convention, but generally you should only use
ALL_CAPS_NAMES
for environment variables or other stuff that's part of the shell's world. Variables local to scripts should belower_snake_case
to avoid collisions and hint that they're not going to have any effects outside the script.That sounds reasonable, thanks for the tip!