Object naming

scott at elementarysoftware.com scott at elementarysoftware.com
Tue Jul 28 04:18:22 EDT 2020

So Alex, the takeaway here seems to be that once you name your child objects… “now it’s too late.”

While reading this out aloud, I taught my classes of 2nd and 3rd graders to say, “Noooooo” after the second line. And I usually paused to let the class finish Oliver Boliver’s name.

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web       https://elementarysoftware.com/

> On Jul 27, 2020, at 10:24 PM, Richard Gaskin via use-livecode <use-livecode at lists.runrev.com> wrote:
> Consider a simplified problem statement:
> You have two objects of the same type in a container, and you want to tell them apart but had given them the same name.
>   Too Many Daves
>   by Dr. Seuss
>   Did I ever tell you that Mrs. McCave
>   Had twenty-three sons and she named them all Dave?
>   Well, she did. And that wasn't a smart thing to do.
>   You see, when she wants one and calls out, "Yoo-Hoo!
>   Come into the house, Dave!" she doesn't get one.
>   All twenty-three Daves of hers come on the run!
>   This makes things quite difficult at the McCaves'
>   As you can imagine, with so many Daves.
>   And often she wishes that, when they were born,
>   She had named one of them Bodkin Van Horn
>   And one of them Hoos-Foos. And one of them Snimm.
>   And one of them Hot-Shot. And one Sunny Jim.
>   And one of them Shadrack. And one of them Blinkey.
>   And one of them Stuffy. And one of them Stinkey.
>   Another one Putt-Putt. Another one Moon Face.
>   Another one Marvin O'Gravel Balloon Face.
>   And one of them Ziggy. And one Soggy Muff.
>   One Buffalo Bill. And one Biffalo Buff.
>   And one of them Sneepy. And one Weepy Weed.
>   And one Paris Garters. And one Harris Tweed.
>   And one of them Sir Michael Carmichael Zutt
>   And one of them Oliver Boliver Butt
>   And one of them Zanzibar Buck-Buck McFate ...
>   But she didn't do it. And now it's too late.
> --
> Richard Gaskin
> Fourth World Systems
>> Alex Tweedly alex at tweedly.net
>> Mon Jul 27 15:47:12 EDT 2020
>>    Previous message (by thread): Object naming
>>    Next message (by thread): Object naming
>>    Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>> On 27/07/2020 16:33, Richard Gaskin via use-livecode wrote:
>>> There are many ways to refer to things.  The simplest is to use unambiguous names for things that matter.
>> Is there an unambiguous name in this case ? And if so, what is it :-) ?
>> A group "A" contains a rectangle "R", and a (sub)group "B". "B" also contains a rectangle "R". (btw - "B" also may contain a subgroup "C", and it too will have a rectangle "R", and ....).
>> There is an unambiguous name for the 'most nested' "R", but there doesn't seem to be for the other "R"s. I had expected (or perhaps just hoped) that using a long name would first try to find an exact match, and if that failed it would then find the closest inexact match - but that sadly was just a hope.
>> I could (and probably will) use IDs but that doesn't work for duplicating the group - you need to either go in and adjust a script / custom property OR have the group's script find the IDs.
>> Or - am I'm missing something ?
>> Alex.
> _______________________________________________
> 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

More information about the use-livecode mailing list