Mar 09
8
Regulating Global Population
I know it sounds like I’m going to talk about how the world is getting over populated or something, but I’m not
I began last night setting up a simple debug tool for Clay and ended up rewriting all of its $GLOBALS so the data is stored in a static variable instead. I hadn’t realized how cluttered the $GLOBALS had gotten nor how some of the keys seemed to just jumble together. I’ve reassigned everything, that was getting manually assigned to $GLOBALS, to a variable in the vars class, but will likely do some more separating. I’ve heard both sides of the “store it in $GLOBALS” / “Keep $GLOBALS clean” debate and, other than when viewing the debug tool, I really don’t see much of a difference. It looks “prettier”, I guess, and sometimes that’s enough. I don’t really care for a debate, I just wanted to make debugging easier…
As Forrest Gump would say, “Good, one less thing to worry about.”
Who can debate with that?