• 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
Choosing variable names [was - Re: Read file bug?]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Choosing variable names
      • From: John Delacour <email@hidden>
References: 
 >Re: Read file bug? (From: John Delacour <email@hidden>)

  • Prev by Date: Re: Using tell application "name" where the name comes from GUI Script...
  • Next by Date: Re: Using tell application "name" where the name comes from GUI Script...
  • Previous by thread: Re: Read file bug?
  • Next by thread: Re: Choosing variable names
  • Index(es):
    • Date
    • Thread