Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Naming conventions again........
Message
De
27/08/1999 16:29:01
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
 
À
27/08/1999 14:42:49
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00258085
Message ID:
00258654
Vues:
16
>Mike,
>
>I didn't ask the entire contents or a copy, I did ask what the main message was.
>
>Walter,
Hi Walter, Mike
Mike, I'm glad somebody read it. Thanks. Someday when your kids say, "Daddy, why do you put those letters in front of your variable names?", I hope you will be confident of your answer. :-)
The main message, Walter, was exactly as you posed as you started this thread: Is there a good reason for where we are today regarding naming conventions.
I hate cryptic names, so I harped on creating English names that conveyed the type whereever possible.
I like polymorphistic names, so I think MS erred by naming things like PageCount, FormCount, ButtonCount. It's a PageFrame! It has a count! The property should be Count. If something has a Name, I call it Name, not CustName. It's in the Customer table, so that's the context.
Others may gain solace by having prefixes, but I get mine from good naming of variables and the like--not that I always do.
I freely admit this must be a genetic thing. I just can hardly read the prefixes. They get in my way. But then, I never know whether a b loops to the right or left either.
Charlie
Charlie
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform