Re: How to do a goto with Applescript?
Re: How to do a goto with Applescript?
- Subject: Re: How to do a goto with Applescript?
- From: Emmanuel LEVY <email@hidden>
- Date: Tue, 11 Jan 2011 06:35:05 +0100
Hi Tom!
Wonderful you're still around!
How have-you been drowning these times?
Emmanuel
On Jan 11, 2011, at 5:48 AM, BareFeetWare wrote:
On 11/01/2011, at 12:46 PM, Alex Zavatone wrote:
When you take something that is initially obscure and remove a
level of obscurity with a small bit of effort, you naturally make
code more self documenting and easier to understand. This is
especially true when you have to look at at your code after 6
months or a year.
Make your code self descriptive and the time you spend will pay
itself back in the time you DON'T have to spend figuring it out
again when you have to maintain or debug it.
Don't use your brainpower trying to understand code that you wrote,
use it to come up with the creative solutions and write clear,
understandable, well structured code that is a breeze to debug and
expand.
Very well said.
AppleScript is like any other language, whether human (eg English)
or programming/scripting (eg C). Our job when using it is to
communicate as effectively as possible. I can write instructions
with the aim to make it clear, elegant and informative, or I can
just not bother. But not bothering usually leads to a world of hurt,
either incrementally wasted seconds as I go, or accumulated hours
trying to understand or debug or pass it on months later.
This applies to using descriptive variable names, using most
efficiently laid out branching structures, non ambiguous if/then
conditions and so on. I don't care whether you're writing a 10 line
script, a 10MB application, writing a shopping list or telling a
story. Good communication is an art and shows value on time, value
for others, and value for the artform. Bad communication is
inconsiderate, short sighted and lazy or ill informed.
Tom
BareFeetWare
--
Comparison of SQLite GUI tools:
http://www.barefeetware.com/sqlite/compare/?ml
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to 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