We hear it often, “global variables are bad, avoid using them!” But is this actually good advice? Simplified…