Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
If you hardcode user names, you might be a crappy coder
Message
De
07/06/2021 18:38:09
John Ryan (En ligne)
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
 
 
À
07/06/2021 11:11:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01680936
Message ID:
01681066
Vues:
65
>>Scatter Name is not totally obsolete, but fallback pattern if there are reasons a table buffered cursor is not enough - but the idea of scatter memvar in vfp ***is*** obsolete.

I have ancient code predating SCATTER NAME or even inheritance in VFP. Obsolete? Maybe, but so is VFP and if it ain't broke...

I also try to use mdot every time on the right side of any assignation or test. Not the left, and not at all if it's implicitly a variable. Nor have I always used mdot for THIS or objects. Some might call this inconsistent, but a lot of this was written when mdot was out of fashion and benefit versus potential bug injection doesn't really support remedy. Especially when clusters of more than 3 this. or object. are said to benefit from WITH which I've used consistently.

IMHO there are so many use cases and "what about"s that there's unlikely to be single universal answers to many of these concerns... especially since you need fairly tight loops to be able to measure most differences and some of positive or negative examples do come across as trick shots.

I did notice a comment from Dragan along one of these threads, that prg-based forms and classes instantiate quicker than scx or vcx. Did I get that right, Dragan? Definitely the case? Last I heard (admittedly many years ago) was that dbfs or views in a visual data environment load visibly quicker than a series of USE but again, that's likely to be eclipsed by better hardware over the decades...
"... 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