Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Few Newbie questions
Message
De
28/10/2010 11:32:20
 
 
À
28/10/2010 04:53:17
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01487336
Message ID:
01487396
Vues:
67
You can find a document will accepted coding guidelines at http://www.idesign.net/idesign/DesktopDefault.aspx (see the links on right)

Once you get your feet wet a bit, I highly recommend http://search.barnesandnoble.com/Framework-Design-Guidelines/Krzysztof-Cwalina/e/9780321545619/?itm=1&USRI=framework+design+guidelines+conventions+idioms These are the official guidelines from MS. While it says "Framework", they can be applied to applications.


>Ok,
>
>just created my first little application in C# and have a few "what's best practice" type questions;
>
>1. What is the expected practice for naming controls? frmLogon, btnName, txtInput etc?
>
>2. Is camelCase still best policy for variable naming?
>
>3. Should variable names begin with and identifier of their type? intCounter, strBuffer etc?
>
>I know in reality it will not make my code run faster/better but I would like to follow standard practice. Are there any other "recommended practices" that would be different to what I am used to in VFP?
>
>
>Gary.
>
>PS. is there a .Net equivalent to VFP's beautify?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform