Re: Variable names
Re: Variable names
- Subject: Re: Variable names
- From: BareFeetWare <email@hidden>
- Date: Thu, 13 Jan 2011 09:38:51 +1100
Three general responses:
1. Yes, if you live in a vacuum and noone is EVER likely to read your script, you're not ever going to post it on this forum for help and you aren't going to read your script five minute, or five days or five months later, and you don't write anything complicated enough in which you might have to fix errors, then communication doesn't matter, and you could call all of your variable and handler names x1, x2, x3, x4 etc. I still think it's unnecessarily obfuscated, but no harm done since noone will ever have to understand what you wrote.
2. Yes, the goal is TOTAL minimized time. If it truly takes you precious minutes to think of a meaningful variable name and there is no time saving for you or anyone else to understand it later, then use whatever short names you like. But I expect that in almost all cases a more clearly written script will pay for itself 100 or 1000 fold.
3. Most arguments for short non-desriptive variable names seem to quote a line and say that in that context it's perfectly clear what the variable does. But my point is that a descriptive variable name makes it clear on EVERY line what the variable does.
And that's all I have to say about that ;-)
Thanks,
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden