Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can execute a button click method without showing the fo
Message
De
26/09/2019 09:30:41
 
 
À
26/09/2019 09:12:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01671046
Message ID:
01671160
Vues:
61
J'aime (1)
>>>>>I don't see how it breaks encapsulation...
>>>>Encapsulation means every object is responsible for itself. Containers know about their contents, but objects at the same level are independent of each other.
>>>
>>>If I understand what you're writing, I think that's unworkable at times.
>>>
>>>A container class holding input fields including a quantity and a unit price have to know about the nearby total field. Adding code to the InteractiveChange event on one of those related input fields allows the other one to call the other object's InteractiveChange field when it changes, so the total can be updated from one location, and it's right there. These are three separate objects, but they have an implicit relationship. The parent container might also have other fields, like date, description, etc.
>>>
>>>I could create a method to do it at the container class level, and that method could query both object's .value property to then populate the third's. And then I have four things involved in doing a three-thing job. I also have to leave the object in the designer and find the parent container object, find the method, rather than seeing the code right there.
>>>
>>>There has to be a balance.
>>>
>>>I also don't use Thor. If it were named "Visual FoxPro Helper Utilities" I would use it. But "Thor"? Nope. It has undesirable connotations in the extreme.
>>>
>>>Thor -- "Scandinavian Mythology. the god of thunder, rain, and farming, represented as riding a chariot drawn by goats and wielding the hammer Mjolnir: the defender of the Aesir, destined to kill and be killed by the Midgard Serpent."
>>>
>>>Nope. Never.
>>
>>Now I am offended. Thor was named by me, based on my own name which happens to mean Big (Stor, the S has "disappeared" over time),
>
>
>FWIW, I've been offended by Thor's name since I heard of it. It's literally why I've never used it. The mythology connotations are too much.

When discussing the name for the tool, several suggestions came up. One was Zorro, which means Fox in Spanish. We were told that someone who had registered Zorro as a brand name, objected to the name and would sue us if we didn't drop it. Since we ware ready to announce the tool, we needed a name very soon.

I Suggested Thor since it's a historic name for Scandinavians, plus it's a variant of my own name. I am willing to bet that only a few Scandinavians, with a diagnosis, have any belief in these old sagas.

What do you call Thursdays, and what do you do to avoid them? Likewise, what about Tuesdays, Wednesdays and Fridays?

If you are superstitious or for any other reason dislike the name, then that's your problem. But please don't use it against me, so to say.

>I have other areas in my life where I move similarly, all based on principle and devotion to faith. Calling something "Thor" is a choice. And it has ramifications in what that name conveys. I consider these things. I've even renamed my Liberty Software Foundation (LibSF) to now be called 3Alive because of what it conveys.
>
>(* * * Warning * * * ----- This website link below only has a single landing page presently by design, but it conveys Christian connotations. If you would prefer to NOT see such a thing, then DON'T CLICK THE LINK)
>
>http://www.3alive.org
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform