John Baird
Coatesville, Pennsylvanie, États-Unis
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement