Variable Naming Convention - Discussion
March 19, 2008 12:00 AM
I programmed for 20 years in the "old days" so am familiar with conventions. After nearly 3 years in Lectora here is what I have found useful:1. There is no particular need to distinguish between string and different numeric unless you have both kinds relating to a topic.2. I preceed mine with an underscore (_) so they float to the top of the pile when selecting them from dropdown lists that are alphabetical. This also distinguishes them from the many system variables like time, date, current page, ...3. I have consoled myself to using both keystrokes and mouse - keystroke _p gets me close, mouse gets me the rest of the way.4. Use short variable names if you plan on having them retained in a NON-LMS environment.5. Beyond the above I may use some kind of 1-4 char prefix to group like variables together. 6. On a given page, I don't spend tremendeous time naming everything, only the key objects that I change somehow.
Discussions have been disabled for this post