Best Practices using globals vs. custprops?
Shari
shari at gypsyware.com
Fri Jun 22 10:44:46 EDT 2007
Differentiating local and global variables:
One way I differentiate is that all of my local variables are related
to *it*. I always name a local variable some variation of it, for
example:
tit, wit, skit, pit, grit, twit, spit...
If I get confused and can't remember in a long handler if I've used
one of the its, I move to itty.
itty, bitty, titty, witty, smitty
So at a glance, I know these are locals without appending an L or T
or something.
Shari
--
Windows and Macintosh shareware games
BIackjack Gold
http://www.gypsyware.com
More information about the use-livecode
mailing list