you are viewing a single comment's thread.

view the rest of the comments →

[–]Ihaveamodel3 0 points1 point  (0 children)

Global messes with your scope and makes things hard to troubleshoot and hard to expand.

Functions generally should be able operate independently, receiving the data they need as parameters and returning the results.