Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calvin Hsia's blog and VFP tools
Message
De
16/12/2004 21:15:55
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00969652
Message ID:
00969914
Vues:
23
>>I don't think I said otherwise:) Actually I say even 'c' is redundant in most cases.
>
>IMO, we'd better use the data type prefix, the reasons are:
>
>1) Without the prefix, very often, VFP will give a keyword color for the variable. The Beautify feature will turn the variable to upper case. Most of the time, the prefix will make our code more readable, for example
>
>STORE 2 TO TABLE	&& "TABLE" in blue (keyword color). Turned to upper case by Beautify
>STORE 2 TO cTable	&& "cTable in black
>
>
>2) The data type revealed by the prefix makes our code easier to maintain. "c" is redundant in cFirstName, but not in cParentID. I prefer using a neat and consistent prefix rather than using longer names such as ParentIDString or KeyValueString (cKeyValue is better).

I disagree... it is a personal thing after all < s >.
1) Why "cTable"? Why not "CustomerTableName"?

2) Ahhh, so it's not "readability" that you're worrying about, but typing!
I say it's high time that we stopped putting ourselves first and made 'the next guy' the object of our chosen techniques!

cheers


>
>Ben
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform