Generally speaking, good programming practice from a variety of disciplines indicates that one should try to avoid convenient shorthand like using 'sec' for 'seconds'. Seconds of what? Meals? Elapsed since the big bang?
Generally, more descriptive variable names are preferred, such as, SecondsFromSpriteCollision, etc. However, this can be too wordy for many, which is unfortunate, since it REALLY makes source code vastly more readable.
Therefore, perhaps you can adopt a convention whereby you combine shorthand with semantic clarity. SecSprColl, for example.
Alternatively, you could perhaps prefix all variables with an underscore, the way old-fashioned C compilers used to. This way, _sec is distinguished from sec.
|