Name: Anonymous 2013-11-19 12:18
Ask /prog/ anything.
Although don't expect an answer or even a good one.
Also, keep it /prog/ related.
Although don't expect an answer or even a good one.
Also, keep it /prog/ related.
The more global variables you have, the more you have to worry about exactly what each function may do in terms of unexpected side effects. If you have no global variables, you can look at just what a function returns and what it calls. If you have many global variables modified in a function, you have to track each one down across every other part of your program to figure out what a function actually does.So when I avoid global variables, I do so for reasons of clarity.