Global Variables Criticism
The cluster focuses on discussions criticizing the use of global variables in programming, particularly in JavaScript, highlighting issues like namespace pollution, maintenance nightmares, and alternatives to avoid them.
Activity Over Time
Top Contributors
Keywords
Sample Comments
Global variables... I'm ashamed.
Couldn't agree more. It's like using a library that insist on putting everything in global variables.
Today in why global variables are bad...
How is a globally-scoped closure not a global variable?
Only global scope sounds like a nightmare.
that's because it still has global variables.
Poor child. Wait until you have to build a sufficiently complex web app. Global variables are never the answer
There is a massive amount of functions and variables in the global space. That looks fishy to me.
Maybe it's fine, but I'd be concerned about polluting the global namespace
Waitwhat, surely it's not GLOBAL state, but "module global" or something?