Difference between revisions of "Cpp Coding Standards/DESIGN/NoGlob"

From Apache OpenOffice Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 
Global variables introduce global state, which makes testing and understanding your program unnecessarily hard. Furhermore, they pollute their context with their names, and they can't always  be sensibly initialized (see [[../../Design#Global_Data_Initialization | DESIGN:GlobInit]]).
 
Global variables introduce global state, which makes testing and understanding your program unnecessarily hard. Furhermore, they pollute their context with their names, and they can't always  be sensibly initialized (see [[../../Design#Global_Data_Initialization | DESIGN:GlobInit]]).
 +
[[Category:Coding Standards]]

Latest revision as of 17:08, 14 December 2009

Global variables introduce global state, which makes testing and understanding your program unnecessarily hard. Furhermore, they pollute their context with their names, and they can't always be sensibly initialized (see DESIGN:GlobInit).

Personal tools