Large and official coding standard

  • Thread starter =?ISO-8859-1?Q?Arnaud_Carr=E9?=
  • Start date
?

=?ISO-8859-1?Q?Arnaud_Carr=E9?=

Hi all,

I guess you all know how difficult it is to choose a conding standard.
And even more difficult it is to explain the choice to your dev team :)

I'm looking for an "official" c++ coding standard of a large firm such
as Microsoft, Intel or any other like this. I "google" it but I don't
find any "ready to use" document.

Anyone have a good URL to a complete coding standard, used in a large
software firm?

Thanks in advance,
Arnaud
 
V

Victor Bazarov

Arnaud said:
I guess you all know how difficult it is to choose a conding standard.
And even more difficult it is to explain the choice to your dev team
:)
I'm looking for an "official" c++ coding standard of a large firm such
as Microsoft, Intel or any other like this. I "google" it but I don't
find any "ready to use" document.

Anyone have a good URL to a complete coding standard, used in a large
software firm?

I would bet you can't find it. No company would publish their internal
document like that. The nature of the document doesn't matter. What
matters is that the document is not _supposed_ to be published. Just
consult with a lawyer, he/she will explain why it's so.

V
 
M

Michael DOUBEZ

Arnaud Carré a écrit :
Hi all,

I guess you all know how difficult it is to choose a conding standard.
And even more difficult it is to explain the choice to your dev team :)

If the choice is more difficult to explain than to make then my guess is
that you don't make an informed choice ?

I'm looking for an "official" c++ coding standard of a large firm such
as Microsoft, Intel or any other like this. I "google" it but I don't
find any "ready to use" document.

There are many coding standard out there that fit the needs of specific
field of application or specific coding culture. The fact that it is
used by a large firm is not a proof of its validity for you.
Anyone have a good URL to a complete coding standard, used in a large
software firm?

No but you can have a look at the FAQ for guidelines:
http://www.parashift.com/c++-faq-lite/coding-standards.html

It is a bit outdated but perhaps worth a look:
"Industrial Strength C++"
http://hem.passagen.se/erinyq/industrial/

Or there is:
"C++ Coding Standards" by Sutter and Alexandrescu

Michael
 
J

JLS

Hi all,

I guess you all know how difficult it is to choose a conding standard.
And even more difficult it is to explain the choice to your dev team :)

I'm looking for an "official" c++ coding standard of a large firm such
as Microsoft, Intel or any other like this. I "google" it but I don't
find any "ready to use" document.

Anyone have a good URL to a complete coding standard, used in a large
software firm?

Thanks in advance,
Arnaud

There is always the Ellemtel coding standards

http://membres.lycos.fr/pierret/cpp2.htm
 
J

Jerry Coffin

Hi all,

I guess you all know how difficult it is to choose a conding standard.
And even more difficult it is to explain the choice to your dev team :)

I'm looking for an "official" c++ coding standard of a large firm such
as Microsoft, Intel or any other like this. I "google" it but I don't
find any "ready to use" document.

Anyone have a good URL to a complete coding standard, used in a large
software firm?

Would you settle for "once in use"? The Taligent coding standard can be
found at:

http://pcroot.cern.ch/TaligentDocs/TaligentOnline/DocumentRoot/1.0/Docs/
books/WM/WM_3.html

It's badly out of date (predates the C++ standard by 4 years or so), but
you seem more concerned about it being official than useful...
 
A

Alf P. Steinbach

* Arnaud Carré:
Hi all,

I guess you all know how difficult it is to choose a conding standard.
And even more difficult it is to explain the choice to your dev team :)

I'm looking for an "official" c++ coding standard of a large firm such
as Microsoft, Intel or any other like this. I "google" it but I don't
find any "ready to use" document.

Anyone have a good URL to a complete coding standard, used in a large
software firm?

Your best choice is to adopt the coding standard in Andrei Alexandrescu
and Herb Sutter's "C++ Coding Standards", /and/ hand out a copy of that
book to every project member and yourself.

Not everything may be suitable directly as-is, but if you're going to
just choose a standard that's guaranteed to at least be reasonable and
made by knowledgable, technically competent folks, the above is it.

You should perhaps also hand out a copy of a good general anti-pattern
book to every project member and yourself. Since you're searching for
coding standards an anti-pattern book, plus e.g. discussions of concrete
anti-patterns encountered and how to fix them (considering available
resources) is probably an even better device for improving code and
design quality. See <url: http://en.wikipedia.org/wiki/Anti-pattern>.
 
B

boaz1sade

Hi all,

I guess you all know how difficult it is to choose a conding standard.
And even more difficult it is to explain the choice to your dev team :)

I'm looking for an "official" c++ coding standard of a large firm such
as Microsoft, Intel or any other like this. I "google" it but I don't
find any "ready to use" document.

Anyone have a good URL to a complete coding standard, used in a large
software firm?

Thanks in advance,
Arnaud

from Stroustrups' home page a project that he wrote the coding
standard -
http://www.research.att.com/~bs/bs_faq2.html#coding-standard
personally I think that the less is better. I've been involved in
writing the coding standard for a very large scale project and we end
it with 2 pages of text. We never had any problem with that even tough
most programmer who were involved in it changed over the course of the
project, we ended with very consistent coding style.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top