Slashdot Mirror


Recommended C++ and Java Coding Standards?

Gerard J. Pinzone queries: "My company is looking to implement C/C++ and Java coding standards. However, I can't seem to find a definitive list. I'm more familiar with Java and have suggested that we use 'Elements of Java Style' and Sun's documentation. BTW, beware of 'Netscape's Software Coding Standards Guide for Java.' It's woefully out-of-date! Any suggestions?"

1 of 40 comments (clear)

  1. C++ standards by Kirruth · · Score: 2, Insightful
    For C++, Stroustroup's home page offers a solid set of advice and links:

    http://www.research.att.com/~bs/C++.html

    Since he designed the language, I guess he is authoritative.

    If portability is important or if you are likely to Open Source some of your code, Mozilla offers a great style guide for this:

    http://www.mozilla.org/hacking/portable-cpp.html

    C++ compilers are still contrary beasts, and it is worth being aware of the pitfalls.

    A number of the tips, especially the "do's" come from Scott Meyers "Effective C++" series, which has to be recommended for anyone looking to define a common company approach to C++ programming.

    --
    "Well, put a stake in my heart and drag me into sunlight."