Re: How to do a goto with Applescript?
Re: How to do a goto with Applescript?
- Subject: Re: How to do a goto with Applescript?
- From: Alex Zavatone <email@hidden>
- Date: Mon, 10 Jan 2011 20:53:01 -0600
On Jan 10, 2011, at 8:05 PM, Stockly, Ed wrote:
>>> Or don't believe me and keep on making the same mistakes. I learned this by facing my old bad habits and seeing if it was worth it to spend the time to make my core more naturally understandable. ‘
I agree with much of what you’re saying, but, there is more than one way to resolve these issues. For me, it’s actually more intuitive to use the x, y, z for increments in nested repeat loops than a descriptive term. But, you are right, if I were using single char variables for other things too, it would quickly become an indecipherable mess.
For nearly all other cases I choose a variable name that is both consistent with the english language metaphor and descriptive of the variable’s contents.
I use globals and properties sparingly and never have a problem caused by not knowing the scope of a variable. Adding those scoping characters make the script less understandable and breaks the english like flow of the script, which also makes it harder to read.
ES
In my testing the i, j, k variable name against a descriptive name for a repeat loop of 90000000 iterations, there was no noticeable time difference that was dependent upon variable name length.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden