Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Naming Conventions
Message
De
06/11/2003 22:11:53
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
05/11/2003 14:24:46
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00846723
Message ID:
00847477
Vues:
16
>Out director has said that we must find another way to name our variables as he finds it difficult to read. Currently we use lcMyVariable ....

I'd say 70% of the FoxPro community names variables that way. Anyone coming to the project from the outside would most likely feel "at home" with that convention.

> ... He would like to use MyVariable_lc instead.

Aaack! You have to go all the way to the end of the word to find out some important things like clues to the data type and scope. When "lc" is used as a prefix then variables sort nicely, when used as a suffix it doesn't help at all.

> We were also considering lc_MyVariable ...

I'd find that acceptable but it looks choppy.

> ... one person thought that MyVariableLC was reasonable.

Again, you have to read all the way to the end of the word to find out what you really want to know. If I worked for your boss I'd hate being held to a standard that no one else uses. If you used lcMyVariable you'd be using the most common convention.

How about opening up a few Hentzenwerke books or Adivsor magazines (you do have them don't you?) and showing your boss the conventions used there.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform