471,339 Members | 1,258 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,339 software developers and data experts.

Coding Standards

Hi Guys,
Could any one knows the best coding standards styles(with variable
declarations for c#) . and if any links or site with the best coding
standards for .NET send me those links

regards
Ganesan

Jul 21 '05 #1
3 1878
Ganesan,

try this one:
http://msdn.microsoft.com/library/de...us/stg/stg/cod
ing_style_conventions.asp

Regards,
Michael

"ganesan" <cs*********@gmail.com> schrieb im Newsbeitrag
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi Guys,
Could any one knows the best coding standards styles(with variable
declarations for c#) . and if any links or site with the best coding
standards for .NET send me those links

regards
Ganesan

Jul 21 '05 #2
H Ganeshan,

Here are some best coding standards for variables, Data Types and constants..
1. Use the inbuilt data types of the language rather than the framework data
types
Eg: Use int (for C#) rather than Int32.
2. Use the simplest data type that can store u r value
3. Initialize variables when they are declared. This makes the code readable
and also shields you from changes to default values in the future version of
language. The .NET compiler optimizes this so that there is no performance
hit when you do this. ( For .NET 2.0 only)
4. Prefer generic types to base class based types ( In case u r coding in C#
2.0)

HTH,

Need any help, do post a msg back..
Happy Coding
"ganesan" wrote:
Hi Guys,
Could any one knows the best coding standards styles(with variable
declarations for c#) . and if any links or site with the best coding
standards for .NET send me those links

regards
Ganesan

Jul 21 '05 #3
These are good:
http://www.icsharpcode.net/TechNotes/
http://www.idesign.net/idesign/ (look for standard under News and Resources
on the right)

A bit much if you are just getting started:
http://www.tiobe.com/standards/gemrcsharpcs.pdf

-Andrew

"ganesan" <cs*********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi Guys,
Could any one knows the best coding standards styles(with variable
declarations for c#) . and if any links or site with the best coding
standards for .NET send me those links

regards
Ganesan

Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by dotNetDave | last post: by
5 posts views Thread by db2sysc | last post: by
144 posts views Thread by Natt Serrasalmus | last post: by
7 posts views Thread by Ralph Lund | last post: by
3 posts views Thread by ganesan | last post: by
7 posts views Thread by Robert Seacord | last post: by
3 posts views Thread by editormt | last post: by
9 posts views Thread by dom.k.black | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.