Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Errrhhh ..... CSharp or VB
Message
 
À
23/09/2011 10:14:56
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01524423
Message ID:
01524581
Vues:
78
>>>>Are you using naming that reuses identifiers by changing case? Have you run out of all possible alphanumeric combinations or what?
>>
>>I do this routinely to simplify remembering form and report names:
>>FrmCustomer frmCustomer = new FrmCustomer();
>>
>>Is that frowned upon?
>
>Nope, that's precisely what is best practice in naming conventions... You can tell immediately from the casing what the scope of the variable is...


In C# the scope of a variable isn't an issue for me as all my variables are private and any data I want exposed is done through properties. Even in VFP I coded this way, I always defined my variables private, so there was never an reason to put a scope identifier on a variable name.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform