Re: loops
Re: loops
- Subject: Re: loops
- From: garbanzito <email@hidden>
- Date: Thu, 14 Feb 2002 16:48:02 -0700
at 2002 02 14, 15:49 -0500, they whom i call Arthur J Knapp wrote:
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.
first, this thread is direct evidence of how something like
"i" can confuse a novice. second, using abstract names may
in some cases clarify an _algorithm_, but i think it's more
important, especially in scripting, to highlight the
_semantics_ of a code snippet. third, neither Mark nor i
said "long"; a_line and the_lines are descriptive, but not
long. and fourth, couldn't one say the same about a long and
descriptive overall language syntax?
on the last point, consider the flip side -- i find reading
UserTalk code easier than AppleScript because descriptive
variable names (which embody more meaning than the terse
language constructs) stand out from the code. unfortunately,
though, UserTalk's dictionary tools turn terms like
"bounding box" into "boundingBox".
--
steve harley email@hidden
_______________________________________________
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.
References: | |
| >Re: loops (From: Arthur J Knapp <email@hidden>) |