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

Re: loops


  • Subject: Re: loops
  • From: Arthur J Knapp <email@hidden>
  • Date: Thu, 14 Feb 2002 15:49:07 -0500

> Date: Thu, 14 Feb 2002 13:11:24 -0700
> From: garbanzito <email@hidden>
> Subject: Re: loops

> at 2002 02 14, 12:09 -0700, they whom i call Marc K. Myers wrote:
>> [...] The i is a "loop variable". Each

>> ... It would
>> be clearer if more descriptive variable names were used and would work
>> exactly the same way:

> hearty agreement with that!
>
> though i'm sure i've done it myself, it's really poor
> practice to litter teaching examples with meaningless
> variable names, especially in a supposedly
> "self-explanatory" language like AppleScript.

I'm afraid that I cannot agree with that, (at least not in all
situations). Look, if you're learning a language for the first
time, obviously you need a lot of help with figuring out what is
what, but once you've developed even a little bit, long and
descriptive variable names can actually get in the way of
quickly understanding a simple algorithm.

Now a days, when I read something like:

repeat with an_incrementing_variable from initial_value to ...

I'm often afraid that my head might explode.


{ Arthur J. Knapp, of <http://www.STELLARViSIONs.com>
<mailto:email@hidden>
try
<http://mtlab.ecn.fpu.ac.jp/scripting/Jcode_osax.html>
on error number -128
end try
}
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: loops
      • From: garbanzito <email@hidden>
  • Prev by Date: Re: John Delacour (was: monthNumber)
  • Next by Date: (no subject)
  • Previous by thread: Re: loops
  • Next by thread: Re: loops
  • Index(es):
    • Date
    • Thread