Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prague/ Q&A

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.

Name: Anonymous 2013-11-26 12:27

>>72
I asked that a long time ago and got bombarded with dozens of reasons, many of which were language specific. The one that stuck with me was
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.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List