or, What the heck is global abatement?
tldr: Global variables are code smells. Declaring variables inside an application-level function serves to namespace the variables and minimizes the use of global variables.
1 2 3 4
1 2 3 4 5
Declaring an application-level function ensures that the correct
person is called when needed. It improves readability by essentially flagging the scope of the variable and reducing ambiguity.