• 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: Thirteen Scripters Scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thirteen Scripters Scripting


  • Subject: Re: Thirteen Scripters Scripting
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 24 Dec 2008 22:32:41 -0500

On Wed, Dec 24, 2008 at 10:19 PM, Ed Stockly <email@hidden> wrote:
> So how does that change improve the script? It doesn't run faster or sound
> better.

As a general rule, better source code is an improvement in itself,
even if the performance doesn't change.

Whether or not my version of the source is an improvement is open for
debate, of course.

But deduplicating data is a habit for me at this point.  The idea is,
if there's a piece of data that a program needs, I should only have to
supply it to that program once; if it's present twice, then you run
the risk of the two places getting out of synch with each other in the
future.  Since the number of each gift is implied by its position in
the list, there's no need to add the English name for the position
number to the content of each item, or to build a separate list of
those same numbers in ordinal form.
Factoring in Michelle's observation that the text-to-speech
autocorrects malformed ordinals like "1th" allows even more
simplification.

--
Mark J. Reed <email@hidden>
 _______________________________________________
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: Thirteen Scripters Scripting
      • From: Michelle Steiner <email@hidden>
References: 
 >Thirteen Scripters Scripting (From: David Marshall <email@hidden>)
 >Re: Thirteen Scripters Scripting (From: "Mark J. Reed" <email@hidden>)
 >Re: Thirteen Scripters Scripting (From: Ed Stockly <email@hidden>)

  • Prev by Date: Re: Thirteen Scripters Scripting
  • Next by Date: Re: Thirteen Scripters Scripting
  • Previous by thread: Re: Thirteen Scripters Scripting
  • Next by thread: Re: Thirteen Scripters Scripting
  • Index(es):
    • Date
    • Thread