Fixating on Object Prefixation

DunbarX at aol.com DunbarX at aol.com
Fri Jan 21 15:39:15 EST 2011


It is comforting to have a (sort of) unified naming system. In HC, it was 
common, for example, that all globals be prefixed with "the", as in 
theGlobal.

In LC, I see many use "t" as shorthand for "the" as, for example, tLine:

repeat for each line tLine in foo

And I see a convention "g" for globals.

I can read such things just a little easier, whether in my own code or 
someone elses, if I see familiar indicators. I think it is a good idea for 
common objects and variables.

Was it Danny Goodman who invented "foo", and "temp"? Everyone over 45 knows 
immediately what these are intended to mean.

Craig Newman



More information about the use-livecode mailing list