2 ms·
Any good reading suggestions regarding the idea that global variables are harmful?
by wavepruner 6y ago
Any good reading suggestions regarding the idea that global variables are harmful?
- finnthehuman 6y agoYes. The largest global-heavy, non-public, codebase you have access to. Reading a treatise on globals if you don't already have the taste to suss out much of the cost/benefit of globals on your own is a recipe for taking the contents out of context and treating the recommendations too broadly/narrowly.
- commandlinefan 6y ago> treating the recommendations too broadly/narrowly That's a good point - mis-applying best practices because you don't really understand them is almost as bad as just ignoring them to begin with.