Thanks Richard. Yes, the naming convention idea is what I've done and moved on. Namespaces would be great at some point but not holding my breath for that. Pete lcSQL Software <http://www.lcsql.com>
On Sun, Jun 10, 2012 at 11:33 AM, Richard Gaskin <ambassa...@fourthworld.com > wrote: > Peter Haworth wrote: > >> I've renamed the global in the utility stack to something that's hopefully >> obscure enough that it won''t clash with other stacks' globals. >> > > I'm a big fan of Getting-It-Done-And-Moving-On solutions, and that works. > > It would be nice if we could declare namespaces, and perhaps in the future > we will, but for now adopting habits with naming things can pay off nicely > with the setup we currently have. > > I've become fond of using some identifying prefix for globals in addition > to the "g", so I know where they're defined and used. > > For example, I'm currently updating a library for server data store > management called libDChunk (the storage scheme is called "Document > Chunkadelic" - long story), so the globals it uses are prefixed with "gdc", > e.g., "gdcUserInfoA". > > Now that I think of it, it may be worth mentioning that trailing capital > "A" - I got that idea from Sarah Reichelt, who uses it to distinguish > arrays. > > If you're really into this sort of curmudgeonly obsessive naming stuff, > this article is full of it: > <http://www.fourthworld.com/**embassy/articles/scriptstyle.**html<http://www.fourthworld.com/embassy/articles/scriptstyle.html> > > > > :) > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > Follow me on Twitter: > http://twitter.com/**FourthWorldSys<http://twitter.com/FourthWorldSys> > > > ______________________________**_________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode> > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode