Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foxpro Life
Message
De
10/04/2017 16:24:43
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
 
 
À
10/04/2017 09:59:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrats & ententes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Novell 6.x
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01649781
Message ID:
01650028
Vues:
105
>>I use the same naming convention so it is not a problem for me. I use 'l' to denote a local variable and then the type and finally a descriptive text. Field names are only descriptive text and always referenced with the alias.

Yep- Hungarian Notation became popular just in time for VFP3. But starting in 1995 IME, Remote Views followed by Object scatters removed most of the purpose for variable names matching fields as used to be so common. IME there's also a bell curve of eased maintenance from succinct descriptive naming: when I began, use of "l" as a variable name made sense when your customer's TRS-80 might only have 4K RAM, though you had to survey all the code to understand its use. To this day I try to keep variable labels concise, not least because massive long names are easily to get slightly wrong unless you fossick around and verify, which starts to push the maintenance benefits away again. I think this is less of an issue with static typing and Intellisense or tools like Thor, but old habits die hard. ;-)

Ironically, VFP Compiler obfuscation includes conversion of variables and code sequences into non-descriptive labels and calls that are awful to try to follow, though they do the same things as your original source. Variable names that match field names are one of the few exceptions to survive this obfuscation.
"... 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