View Single Post
 
Old 11-18-2015, 12:28 PM
shg shg is offline Windows 7 64bit Office 2010 32bit
Advanced Beginner
 
Join Date: Oct 2015
Posts: 55
shg is on a distinguished road
Default

The reason for declaring them is a separate module is just hygiene. They are not specific to any other module (that's why they're public), and keeping them together lets you find them all at a glance. For someone trying to understand your code, it's a good place to start reading.

Public variables have their place, but should be used only after careful consideration of the alternatives. In general, they can make code harder to debug and maintain.

The only code I might include in that module is a routine that initializes those variables.
Reply With Quote