No Global Variables
From CSSEMediaWiki
(Difference between revisions)
(→See Also) |
|||
Line 5: | Line 5: | ||
== See Also == | == See Also == | ||
− | [[Riel's heuristics|Riel's heuristic 8.1]] | + | * [[Riel's heuristics|Riel's heuristic 8.1]] |
− | + | * [[Singleton]] | |
− | [[Singleton]] | + |
Revision as of 04:50, 7 October 2008
Enough said.
Global variables are an instant source of unpredictable coupling. Short of searching all your source code for references to a global variable you can never quite be sure who is setting it to what value and are they playing fair.