Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Draft naming convention
Message
De
14/02/2010 11:33:14
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01449087
Message ID:
01449089
Vues:
60
>IMHO, Hungarian Prefixes are akward in SQL and in C#
>
>They seem to be good in VFP and I also like to have 3 letter abbreviation for GUI elements, but not sure I have really good for all elements in ASP.NET or WinForms.
>
>If someone can post these, that will be good.
>

And counter to best-practices. The name of the variable tells you the type if you name it correctly.... FirstName will be a string, not an integer....no need for strFirstName;
counter, index, etc.... will be integers; not strings.....

Hungarian notation is a remnant of non-typed languages like VFP where you never know what variable type something is going to hold....however, with strong typing it is not needed.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform