As a general rule, developers should limit the scope of variables as much as possible. Keeping the notion of limiting scope in every way possible, from the big things (never, ever, ever use global variables)to the subtle little things a language can do (declare const parameters whenever ...
More...