• 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: compactness of expression question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compactness of expression question


  • Subject: Re: compactness of expression question
  • From: billp <email@hidden>
  • Date: Fri, 18 Jan 2002 18:20:46 -0600

Hi Scott,

Even though I am fairly novice at applescript, I consider my
code reasonably compact. My problem is that Microsoft Word
is much better controlled with (very bulky) calls to VB. I have
used handlers to streamline redundancy where possible in the
lengthy "do visual basic" routines, but I have to call so many
different ones, and some just once, that they do add up to create
a bulky file. If only MS would make Word's AS dictionary work
as advertised, A lot of verbosity could be purged.

I have used suggestions from this board to learn quite a lot
regarding better programming, and I'm sure that I could make things
tighter. But on this project, I doubt it could be THAT much
better.

Bill Planey

>Ah, a chance to toss out one of my favorite programming aphorisms.
>
> More computing sins are committed in the name of
> efficiency (without necessarily achieving it) than
> for any other single reason--including blind stupidity.
>
> --William A. Wulf, "A Case Against the GOTO,"
> Proceedings of the Twenty-Fifth National ACM Conference, 1972.
>
>So how to improve? If your script is getting too big, and its got lots of
>globals, the problem probably isn't the code, but the data structures you are
>using. Code tweeking can only make marginal improvements, but using a proper
>data structure can make the script smaller, faster, and easier to
>understand all
>at once.
>
>And consider, a global variable costs less than 0.01 cents ( or 0.1
>milliEuros)
>s


  • Prev by Date: Re: How to grab Now calendar categories & choose in dialog?
  • Next by Date: Re: Smile 1.8.7 SOLVED!
  • Previous by thread: Re: compactness of expression question
  • Next by thread: how to tell if a particular application is running?
  • Index(es):
    • Date
    • Thread