• 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: Sun, 02 Jan 2011 15:17:29 -0600


On Jan 2, 2011, at 2:35 PM, Skeeve wrote:

I often use GOTO (in languages which have it) to jump to the end of a long list.

Often it's really helpful to avoid longish, deep nested if then elsif "trees"

I strongly recommend that you NEVER do this.   This is where spaghetti code comes from.

Break everything up into classes and start organizing your code.

Too may times, I have had to go through 13 and 15 page case statements to figure out what the hell was going on.

One time I was actually able to rewrite the code and reduce complexity and debugging time significantly.

Never ever do this.  It is the route to fail.


 _______________________________________________
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: Skeeve <email@hidden>
References: 
 >How to do a goto with Applescript? (From: Robert Poland <email@hidden>)
 >Re: How to do a goto with Applescript? (From: Skeeve <email@hidden>)

  • Prev by Date: Re: How to do a goto with Applescript?
  • Next by Date: Re: Accessing/creating mailboxes in Mail.app
  • 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