• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to do a goto with Applescript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to do a goto with Applescript?
      • From: "email@hidden" <email@hidden>
References: 
 >Re: How to do a goto with Applescript? (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: How to do a goto with Applescript?
  • Next by Date: Re: How to do a goto with Applescript?
  • Previous by thread: Re: How to do a goto with Applescript?
  • Next by thread: Re: How to do a goto with Applescript?
  • Index(es):
    • Date
    • Thread