Re: Global = root of all evil
- Posted by Jason Gade <jaygade at yahoo.com> Nov 02, 2006
- 598 views
I've only written small programs, but I've never had a problem with globals. Probably because I almost never use them. Good programming practice says, "Thou shalt not pollute the Global Namespace unnecessarily." I feel less strongly about pros and cons of globals than I do about, say, goto. -- "Any programming problem can be solved by adding a level of indirection." --anonymous "Any performance problem can be solved by removing a level of indirection." --M. Haertel "Premature optimization is the root of all evil in programming." --C.A.R. Hoare j.