Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save victorclee/e34553b8b6991d38c98338189134cf8c to your computer and use it in GitHub Desktop.
Save victorclee/e34553b8b6991d38c98338189134cf8c to your computer and use it in GitHub Desktop.
Avoid modifying global variables
Modifying global variables is generally considered a bad programming practice. Just like programs with complex expressions, programs that modify global variables can be difficult to debug, understand, and maintain.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment