Re:Toyotas Unintended Acceleration and the Big Bowl of “Spag...
by thrownaway2424 on Tuesday June 02, 2015 @12:26AM
(#9643859)
Counting global variables is just silly. I think any number of global variables is perfectly fine.
[ Parent
| on HN ]
Re:Toyotas Unintended Acceleration and the Big Bowl of “Spag...
by xutopia on Tuesday June 02, 2015 @09:36AM
(#9645706)
You're using a throwaway in what seems to be an apparent troll. For newbie programmers out there the reason we don't use global variables willy nilly is because it is very easy to lose track of all the places where one can be accessed. The result is that your code becomes very fragile.
Re:Toyotas Unintended Acceleration and the Big Bowl of “Spag...
by thrownaway2424 on Tuesday June 02, 2015 @01:54AM
(#9644126)
Lots of downvotes, no rebuttals.
Re:Toyotas Unintended Acceleration and the Big Bowl of “Spag...
by Crito on Tuesday June 02, 2015 @02:26AM
(#9644215)
You might as well claim that you think that dogshit makes for a fine breakfast. It doesn't warrant a rebuttal.
Re:Toyotas Unintended Acceleration and the Big Bowl of “Spag...
by mercurial on Tuesday June 02, 2015 @07:59AM
(#9645252)
That's a consequence of the use global variables having been recognized as an anti-pattern for a very long time now, and people downvoting the obvious instead of writing a rebuttal.