Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mdot science
Message
De
16/06/2021 19:52:40
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
 
 
À
16/06/2021 18:12:19
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01681249
Message ID:
01681266
Vues:
54
JR>FWIW, using private variables rather than passing parameters to functions also makes a big difference, at the cost of legibility/familiarity. Do you pass parameters? At some point, perfect becomes the enemy of good.

>MY>I always pass parameters, because that is not perfect, it is better than what is honestly barely good enough among humans. You forget the cost of encapsulation. Something can affect the private variables leaving the calling code in a huge mess or multiple patients dying.

I suppose I could respond by calculating a % improvement in a function with 254 parameters, said improvement available for FREE by simply using private vars or even simply assigning vars that are private by default, with this benefit missed out on by idiots. ;-)

Or, I could listen to your acknowledgement that you have considered the matter and in your context, there are reasons to say "so what" because other stuff matters more.

I choose option 2; you're no idiot.

Did somebody else say you're wrong about mdot? I thought I saw the opposite, mixed in amongst a whole lot of other interpersonal stuff that probably makes most others stop reading.

If you ran a poll, I believe many (most?) here would agree mdot has benefits, though some still choose not to use it. That only affects you if you let it, surely?
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform