3 ms·
I see the main point, and I try not to use globals when I can, but I can't help but recall a quote I read from somewhere: "People who are afraid of globals are
by Jach 17y ago
I see the main point, and I try not to use globals when I can, but I can't help but recall a quote I read from somewhere: "People who are afraid of globals are usually afraid of girls, spiders, etc."
- KirinDave 17y agoI wouldn't trust the person who told you that, anymore. Pretty much the last decade of software engineering has been a slow realization how how untenable the use of large amounts of global state is.
- Jach 17y agoYou're right, of course, but sometimes globals can be the magic sauce you need to hack out something quickly. (I find global hate to be similar to 'goto' hate.)
- cemerick 17y agoAh, the "I'm a big man, I code by writing bits to the platters with a magnet" argument. (Quick, prize to the first xkcd link here!)
- francoisdevlin 17y agohttp://xkcd.com/378/ http://xkcd.com/378/ You asked :)
- Jach 17y agoI found it an amusing quote, and I'm a strong believer in using the right tool for the right task. :)