Re: Object naming conventions

2011-10-08 Thread Bob Earp
Pete, I wouldn't bother adding such complexity. If your naming convention is good then others will just use it. If it's bad you need to change it ;-) And as far as those that just want to do their own thing, to hell with them, they shouldn't be using your tool in the first place !! best, Bob.

Re: Object naming conventions

2011-10-08 Thread Bob Earp
By all means Richard, I'd be honored. best, Bob... > That's a great set of rules, Bob. > > May I have your permission to include them in an update to my naming > conventions article (with attribution, of course)? > > -- > Richard Gaskin > Fourth World Bob Earp White Rock, British Columbia.

Re: Object naming conventions

2011-10-07 Thread Pete
o that others > can > >> refer to it, and check those standards with your team on a regular basis > to > >> make sure it continues to work for them. > >> > >> Naming is only a way of better understanding what somebody was trying to > do > >> in th

Re: Object naming conventions

2011-10-07 Thread Mike Felker
y was trying to do >> in their script, and that somebody is likely you in the future !! So, don't >> forget comments which are as important but generally considered as >> kindergarden practice by self proclaimed expert scripters ;-) >> >> best, Bob... >>

Re: Object Naming Conventions

2011-10-07 Thread Mark Wieder
Jacque- Friday, October 7, 2011, 10:39:26 AM, you wrote: > for me it makes my scripts harder to read. Well, that's the purpose of a scripting convention. If what you're doing makes it easier for you to read your scripts then you're doing things the right way. > We're all different. I really dou

Re: Object naming conventions

2011-10-07 Thread Pete
Thanks Ken, looks like a very interesting document. Pete Molly's Revenge On Fri, Oct 7, 2011 at 1:11 PM, Ken Ray wrote: > > On Oct 7, 2011, at 11:54 AM, Pete wrote: > > > Thanks for the thoughts Bob. > > > > For those who have replied, here's the reason behind t

Re: Object naming conventions

2011-10-07 Thread Ken Ray
On Oct 7, 2011, at 11:54 AM, Pete wrote: > Thanks for the thoughts Bob. > > For those who have replied, here's the reason behind the question. > > I'm about to ask for beta testers for an LC tool that greatly speeds up the > development of applications that use SQL databases. Part of the tool

Re: Object Naming Conventions

2011-10-07 Thread J. Landman Gay
On 10/7/11 6:37 AM, Francis Nugent Dixon wrote: Whatever you do, use a prefix to define ALL your objects, I never do, I don't see any advantage, and for me it makes my scripts harder to read. It's easy to see what type an object is if you forget. In fact, the only consistent naming scheme I

Re: Object naming conventions

2011-10-07 Thread Pete
in the future !! So, don't > forget comments which are as important but generally considered as > kindergarden practice by self proclaimed expert scripters ;-) > > best, Bob... > > > > > From: Pete > > To: How to use LiveCode > > Subject: Object Naming Conven

Re: Object naming conventions

2011-10-07 Thread Richard Gaskin
Bob Earp wrote: Personally I think there are really only three things one needs to follow; 1. Don't worry about what others do, just name everything in a format that really makes sense to you and your team today, and in the future. 2. Keep the names as short and uncomplicated as possible. 3. W

Re: Object naming conventions

2011-10-07 Thread Bob Earp
ng to do in their script, and that somebody is likely you in the future !! So, don't forget comments which are as important but generally considered as kindergarden practice by self proclaimed expert scripters ;-) best, Bob... > From: Pete > To: How to use LiveCode > Subject:

Re: Object Naming Conventions

2011-10-07 Thread Pete
Rene, I really like the idea of prefixes for handlers and functions that tell you where they are located. I'd probably add a prefix for handlers in a library as well. Pete Molly's Revenge On Fri, Oct 7, 2011 at 8:44 AM, René Micout wrote: > > Le 7 oct. 2011 à 16

Re: Object Naming Conventions

2011-10-07 Thread René Micout
Le 7 oct. 2011 à 16:41, Richard Gaskin a écrit : > > So thanks for your post. It prompted me to learn something new, and if I get > time I may add a section to that article on object names. Hello Richard, This is my prefix : -- PRÉFIXES (types des objets) : -- ku = constante (unitaire) -

Re: Object Naming Conventions

2011-10-07 Thread Mark Wieder
Richard- Friday, October 7, 2011, 7:41:27 AM, you wrote: > Somehow I'd gotten the idea that the "control" specifier was limited to > ordinal references, but apparently it's not. I do that rather extensively in PowerTools because I need an object oriented way to deal with any type of control. Sin

Re: Object Naming Conventions

2011-10-07 Thread Richard Gaskin
Pete wrote: Thanks Mark, that's what I was looking for. Pete On Thu, Oct 6, 2011 at 6:03 PM, Mark Wieder wrote: Phil- Thursday, October 6, 2011, 12:28:38 PM, you wrote: > Here is an excellent starting point: > http://fourthworld.com/embassy/articles/scriptstyle.html > Go to the "Namin

Re: Object Naming Conventions

2011-10-07 Thread Francis Nugent Dixon
Hi from Beautiful Brittany, Pete, there has been a thread on this subject several times, but I'm not against seeing it again. Whatever you do, use a prefix to define ALL your objects, but find a rule that suits you. Don't use a suffix, I'm sure you will regret it. I use a two-letter indicator (

Re: Object Naming Conventions

2011-10-07 Thread René Micout
Mark, I do almost the same... René Le 7 oct. 2011 à 03:03, Mark Wieder a écrit : > Phil- > > Thursday, October 6, 2011, 12:28:38 PM, you wrote: > >> Here is an excellent starting point: >> http://fourthworld.com/embassy/articles/scriptstyle.html > >> Go to the "Naming Conventions" part. >

Re: Object Naming Conventions

2011-10-06 Thread Mark Wieder
Ken- that was supposed to read: "Of course, each person has the style that works best for them, so use what you like and ditch what you don't..." > Absolutely. -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@list

Re: Object Naming Conventions

2011-10-06 Thread Mark Wieder
Ken- Thursday, October 6, 2011, 8:06:18 PM, you wrote: > I tend to use prefixes like this only when they aren't already > abbreviations for an existing object in LC. Absolutely. I also quite often use graphic images as buttons, so I'll go hide graphic "btnSaveMe" and there the "btn" reminds me

Re: Object Naming Conventions

2011-10-06 Thread Ken Ray
On Oct 6, 2011, at 8:03 PM, Mark Wieder wrote: > controlprefix example > --- > buttons : "btn" : "btnSave" > radio buttons : "rdo" : "rdoOption1" > checkboxes: "chk" : "chkShowLineNumbers" > tab buttons : "mnu" : "mnuMainTabForm" > fields: "fl

Re: Object Naming Conventions

2011-10-06 Thread Pete
Thanks Mark, that's what I was looking for. Pete Molly's Revenge On Thu, Oct 6, 2011 at 6:03 PM, Mark Wieder wrote: > Phil- > > Thursday, October 6, 2011, 12:28:38 PM, you wrote: > > > Here is an excellent starting point: > > http://fourthworld.com/embassy/

Re: Object Naming Conventions

2011-10-06 Thread Mark Wieder
Phil- Thursday, October 6, 2011, 12:28:38 PM, you wrote: > Here is an excellent starting point: > http://fourthworld.com/embassy/articles/scriptstyle.html > Go to the "Naming Conventions" part. In addition to what's in Richard's writeup I tend to use the following conventions. Mostly just

Re: Object Naming Conventions

2011-10-06 Thread Phil Davis
Here is an excellent starting point: http://fourthworld.com/embassy/articles/scriptstyle.html Go to the "Naming Conventions" part. Phil On 10/6/11 12:23 PM, Pete wrote: I vaguely remember a thread on this topic a while back. I'm interested in what naming conventions people have for stack

Object Naming Conventions

2011-10-06 Thread Pete
I vaguely remember a thread on this topic a while back. I'm interested in what naming conventions people have for stacks/cards/controls, if any. This is in connection with a project I'm working on to automate laying out controls on a card. I'm currently using a naming convention of my own but I'