Choosing variable names [was - Re: Read file bug?]
Choosing variable names [was - Re: Read file bug?]
- Subject: Choosing variable names [was - Re: Read file bug?]
- From: Mr Tea <email@hidden>
- Date: Thu, 17 Apr 2003 13:16:16 +0100
In this forum, Mr John Delacour recently proscribed the use of 'the' as a
part of variable names. As a habitual user, I initially balked at this -
even though the commandment came from on high as if writ on tablets of
stone.
But having given it some thought, I'm inclined to agree. Although using
variables with names like theFile, theName, theBounds seems practical and
transparent at first glance, I have often unwittingly typed a space between
the two parts of the variable name from sheer force of habit. theResult is
usually a script that compiles but does not run (and a lot of chasing around
to find out what the problem is before I realise the mistake).
Although I intensely dislike the 'words_joined_by_underscores' style used in
many of Apple's sample scripts, I was interested to note that a 'single word
followed by underscore' variable-naming style has been popping up in Mr
Delacour's posts of late. Interesting. Is this a new thing you're trying,
John? And why after rather than before the word?
Just curious.
Nick
pp Mr Tea
--
Coming soon: 'The Tea Caddy'
_______________________________________________
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.