Since this code started as a hodge podge collection of things, there is little consistency on procedure names. At times, I thought it was a good idea to include some leading part to indicate which module contained the code.
At another time, I considered creating class modules for different functions and forcing namespaces that way. I never got too far down this path which is probably good.
I think for procedure names, my main goals are:
- The name clearly indicates what the procedure does. I'd favor a long name over a short one if it makes the description unambiguous. Ex:
CombineCells could be improved. ColorForUnique gets close, SelectionOffsetToRight is probably good.
- The name should probably be
UpperCamelCase or whatever they call it with the leading capital letter. I think this looks much better than Something_AndThenUpperCamelCase.
Related to code organization, I would be interested in seeing a better breakdown of procedures into new/different modules. I think there is no real penalty for extra modules, but they can go a long way to organizing code.
Any thoughts on this?
Since this code started as a hodge podge collection of things, there is little consistency on procedure names. At times, I thought it was a good idea to include some leading part to indicate which module contained the code.
At another time, I considered creating class modules for different functions and forcing namespaces that way. I never got too far down this path which is probably good.
I think for procedure names, my main goals are:
CombineCellscould be improved.ColorForUniquegets close,SelectionOffsetToRightis probably good.UpperCamelCaseor whatever they call it with the leading capital letter. I think this looks much better thanSomething_AndThenUpperCamelCase.Related to code organization, I would be interested in seeing a better breakdown of procedures into new/different modules. I think there is no real penalty for extra modules, but they can go a long way to organizing code.
Any thoughts on this?