473,225 Members | 1,318 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Coding Conventions from Microsoft

Hi.

I am starting a new project with C#. I am searching for "good" coding
conventions. I know that there are some coding conventions from microsoft,
(but they are very extensive and not clear). In the example programs of
Microsoft they use different coding conventions:
private members sometimes with underscore, sometimes without; when calling
a method sometimes: method(param1, param2) or method ( param1, param2)
(with or without blanks), ...

What should I do. Is there a way to get the internal coding conventions of
Microsoft, if there are some?

Thanks for any comment.
Nov 15 '05 #1
7 2524
> What should I do. Is there a way to get the internal coding
conventions of Microsoft, if there are some?


I guess read the stuff on this page:
http://msdn.microsoft.com/library/de...guidelines.asp

called:
.NET Framework General Reference

Design Guidelines for Class Library Developers
And draw your own conclussions, what works for you and your team.
regard hjm
Nov 15 '05 #2
On Thu, 18 Sep 2003 09:08:15 +0200, caviar wrote:
What should I do. Is there a way to get the internal coding
conventions of Microsoft, if there are some?


I guess read the stuff on this page:
http://msdn.microsoft.com/library/de...guidelines.asp

called:
.NET Framework General Reference

Design Guidelines for Class Library Developers
And draw your own conclussions, what works for you and your team.
regard hjm


Thanks ...

but I would need a compact form.
Does anyone have such a document.

Thanks.
Nov 15 '05 #3
Hi,

Create one your self, I'm of the opinion that the best convention is the one
that your group feel confortable with and that is enforce in the entire
project , you could include a document with the project especification
detailing what the conventions are.

Also create UML models for your classes and the interactions among them,
these are of more values than any document you can write.

Hope this help,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Ralph Lund" <no****@nomail.com> wrote in message
news:m5*****************************@40tude.net...
Hi.

I am starting a new project with C#. I am searching for "good" coding
conventions. I know that there are some coding conventions from microsoft,
(but they are very extensive and not clear). In the example programs of
Microsoft they use different coding conventions:
private members sometimes with underscore, sometimes without; when calling
a method sometimes: method(param1, param2) or method ( param1, param2)
(with or without blanks), ...

What should I do. Is there a way to get the internal coding conventions of
Microsoft, if there are some?

Thanks for any comment.

Nov 15 '05 #4
Uhm. Just how compact? I mean, you've been offered a comprehensive
document explaining alot of information, yet you reject it as too long
or too verbose? I don't understand how you can ask for something that
might end up becoming what amounts to a "corporate standard" for you
without being willing to do some reading, a little research and some
personal extrapolation from the data you have at your disposal.

So essentially what you're asking for is for someone to give you a
complete coding standards styling document in a few sentences? Without
learning the pros and cons of a variety of different stylings on your
own?

Do you need help at the urinel, too?

Ralph Lund <no****@nomail.com> wrote in message news:<bo*****************************@40tude.net>. ..

but I would need a compact form.
Does anyone have such a document.

Thanks.

Nov 15 '05 #5

Thank you Ignacio for your hints.

A problem is to use foreign source code, which does not follow "my" coding
conventions, like some source code from Microsoft (or some other company).

I am searching for a template, which I can adapt.

Thanks.
Nov 15 '05 #6

Uhm. Just how compact? I mean, you've been offered a comprehensive
document explaining alot of information, yet you reject it as too long
or too verbose? One document? Are you talking about the same thing as I do? If you are
searching for some convention during coding, you want to search in a single
document and not in a link collection. That's my opinion! I am searching
for something like the Java Coding Conventions - short, simple, one
document. I think the coding conventions (link collection) of Microsoft is
a overkill and not absolutely clear.

I don't understand how you can ask for something that
might end up becoming what amounts to a "corporate standard" for you
without being willing to do some reading, a little research and some
personal extrapolation from the data you have at your disposal. I have been reading a lot (belonging to this subject). Did I told you that
I haven't? Did I told you that I didn't research. So why do you think so?

So essentially what you're asking for is for someone to give you a
complete coding standards styling document in a few sentences? Without
learning the pros and cons of a variety of different stylings on your
own? I don't asked for coding standards in a few sentences - I asked for a place
where I can find some. I am searching for a template, which I can adapt. I
think there are pros and cons of every style - I have my own experiences
with coding styles, but I think a good way to create new coding standards
is to adapt an existing document. I know that I have to do this, I asked
for a template, nothing more!

Do you need help at the urinel, too?

This is a really nice comment. I asked a reliable question (in my opinion),
and get such an answer from you? Moderate your twang!

Thanks for your unNICE answer!!!
Nov 15 '05 #7
Hi Ralph,

If you use code from other company, or even from your own company that is
external to your project you will have several different convention or even,
no convention at all in several cases :)

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Ralph Lund" <no****@nomail.com> wrote in message
news:1t*******************************@40tude.net. ..

Thank you Ignacio for your hints.

A problem is to use foreign source code, which does not follow "my" coding
conventions, like some source code from Microsoft (or some other company).

I am searching for a template, which I can adapt.

Thanks.

Nov 15 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: David Inada | last post by:
w3c talks about scripting and gives examples. But I could not find a coding standard for ASP/VBScript. I am trying to find any standards and tools to apply those standards to my companies...
5
by: db2sysc | last post by:
ALl. Is it possible to get MS ACCESS CODING STANDARDS? TIA
39
by: Patrick | last post by:
The c# code style guide that I follow suggests that class variables (fields) be coded with camel casing, like this: int recordId; string name; It also suggests that variables within methods...
3
by: Mats-Lennart Hansson | last post by:
Hi, I'm looking for some coding conventions for c# written by microsoft. What I'm looking for is. for example: * How to name method variables, class variables * How to name functions * How to...
6
by: Andrea Williams | last post by:
Responding to this link in an old thread: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/ht ml/cpconnetframeworkdesignguidelines.asp According to that naming...
1
by: Scott Meddows | last post by:
Does anyone know of a document that Microsoft produces that has the suggested coding standards for naming tables in a Database, fields in a database, objects in a VB project and so on? Maybe one...
4
by: Dotnetjunky | last post by:
Hi, So far, I've found tons of documents describing recommended coding standards for C#, but not a single piece on VB.NET yet. Anybody here knows such a coding standards guideline on VB.NET...
3
by: Dan Schaertel | last post by:
Does anybody have a good VB coding standards documnet? I need to generate one and I am looking for examples. Thanks email: dschaertel@hotmail.com
19
by: auratius | last post by:
http://www.auratius.co.za/CSharpCodingStandards.html Complete CSharp Coding Standards 1. Naming Conventions and Styles 2. Coding Practices 3. Project Settings and Project Structure 4....
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.