Re: Thirteen Scripters Scripting
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