Best Practices in Rev development

Devin Asay devin_asay at byu.edu
Wed Jun 20 17:03:52 EDT 2007


Thanks Mark.
On Jun 20, 2007, at 1:11 PM, Mark Wieder wrote:

> 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.

Right. On this one I have to weigh the gain of catching typos against  
the pain of giving beginning students yet One More Thing to remember  
while they're struggling to get their heads around the whole idea of  
variables.

Regards,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




More information about the use-livecode mailing list