Object naming conventions
pete at mollysrevenge.com
Fri Oct 7 22:58:11 EDT 2011
Thanks Mike, I'll be in touch in the next couple of weeks.
Molly's Revenge <http://www.mollysrevenge.com>
On Fri, Oct 7, 2011 at 6:21 PM, Mike Felker <admin at mfelkerco.com> wrote:
> That sounds like a great tool. I would love to help beta test it.
> Sent from my iPad
> On Oct 7, 2011, at 12:54 PM, Pete <pete at mollysrevenge.com> 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
> > development of applications that use SQL databases. Part of the tool is
> > palette of controls that you can drag and drop onto your cards, answer a
> > couple of easy questions and the control will be linked to your database.
> > Right now, I use a naming convention for controls so that the tool's
> > runtime library can recognize controls that are significant to it.
> > My concern is that I'm imposing my naming convention on anyone who wants
> > make use of the tool. Whether you'd be willing to give up your naming
> > conventions in exchange for the productivity gains you'll get from using
> > tool - that's the question.
> > I'm considering providing an alternative by using a custom property of
> > control to store the info I need and let people name the controls
> > to their own conventions. But that is a fair amount of coding and
> > to be done so I thought I would try to gauge the sentiment on naming
> > conventions before starting down that path. Hopefully, that doesn't
> > any forum rules.
> > Pete
> > Molly's Revenge <http://www.mollysrevenge.com>
> > On Fri, Oct 7, 2011 at 9:15 AM, Bob Earp <rjearp at hotmail.com> wrote:
> >> Pete,
> >> It's a great question, but the last time this was asked on the list I
> >> the discussion went on for three lifetimes (in use-livecode list years)
> >> what exactly should be the standard to use. It seems there's more and
> >> different naming conventions in the world than Tim Hortons has served
> >> of coffee, so if you are trying to automate layout based on what others
> >> you're likely to discover the meaning of life, the universe and
> >> before completing half of it ;-)
> >> Richard Gaskin's article is a great start, and I think that most of us
> >> have coded for a number of years have done something similar.
> 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
> >> really makes sense to you and your team today, and in the future.
> >> 2. Keep the names as short and uncomplicated as possible.
> >> 3. Write down what your naming convention standards are so that others
> >> refer to it, and check those standards with your team on a regular basis
> >> make sure it continues to work for them.
> >> Naming is only a way of better understanding what somebody was trying to
> >> in their script, and that somebody is likely you in the future !! So,
> >> forget comments which are as important but generally considered as
> >> kindergarden practice by self proclaimed expert scripters ;-)
> >> best, Bob...
> >>> From: Pete <pete at mollysrevenge.com>
> >>> To: How to use LiveCode <use-livecode at lists.runrev.com>
> >>> Subject: Object Naming Conventions
> >>> Message-ID:
> >>> <
> >> CABx6j9mopO_9zN3+5uSeFNp-WYt8w2xFzu1LaVP1MDxhUYBaOw at mail.gmail.com>
> >>> Content-Type: text/plain; charset=ISO-8859-1
> >>> 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'd like to provide a way for other conventions to be used, in
> >>> the use of prefix or suffix characters in names of different types of
> >>> objects.
> >>> Any input is most welcome.
> >>> Pete
> >>> Molly's Revenge <http://www.mollysrevenge.com>
> >> Bob Earp
> >> White Rock, British Columbia.
> >> _______________________________________________
> >> use-livecode mailing list
> >> use-livecode at lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the Use-livecode