5 ms·
Counting global variables is just silly. I think any number of global variables is perfectly fine.
by thrownaway2424 11y ago
Counting global variables is just silly. I think any number of global variables is perfectly fine.
- thrownaway2424 11y agoLots of downvotes, no rebuttals.
- Crito 11y agoYou might as well claim that you think that dogshit makes for a fine breakfast. It doesn't warrant a rebuttal.
- chopin 11y agoMaybe you should cite something to back your claim made upthread.
- mercurial 11y agoThat'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.
- xutopia 11y agoYou'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.