Best Practices in Rev development
Mark Wieder
mwieder at ahsoftware.net
Wed Jun 20 15:11:01 EDT 2007
Devin-
Keep standard handlers (i.e., mouseUp) as short as possible, putting the
real code in separate handlers:
on mouseUp
doSomething
end mouseUp
on doSomething
--lots of code here
end doSomething
----------------------------------
Quote string literals:
Use "hello" instead of hello.
----------------------------------
And since you've already decided that not everybody will agree with all of
these:
Declare your local variables and enable the "variable checking by default"
option.
It will help prevent typos and cut down your debugging time.
--
Mark Wieder
mwieder at ahsoftware.net
More information about the use-livecode
mailing list