Changes between Version 1 and Version 2 of CppCodingStandards


Ignore:
Timestamp:
Jul 21, 2009, 2:21:45 PM (10 years ago)
Author:
dtodd
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CppCodingStandards

    v1 v2  
    1 C++ Coding Standards
     1= C++ Coding Standards =
     2
     3== Overview ==
     4
     5Below I will describes in Gory detail suggested guidelines for C++ code.  These rules apply to new code: new files, new modules, new projects.
     6
     7When editing an older file to fix a minor bug, etc, I think it's prudent to make small changes to the source. In this case, it will be best for readability if you use the standard that was there previously.  Than includes following the established indentation, placement of curly brackets "{}", naming conventions, etc.
     8
     9Obviously if the code requires a complete rewrite, then use the suggested coding standards listed below.
     10
     11Here are some resources and books I like for learning C++, coding standards, and general conventions for C++:
     12
     13== Resources ==
     14
     15Bjarne Stroustrup's C++ Style and Technique FAQ: http://www.research.att.com/~bs/bs_faq2.html
     16
     17Great website (For all things C++, STL, C) : http://www.cplusplus.com/
     18
     19Coding Standards
     20  * Used as the main source for those listed below: http://www.possibility.com/Cpp/CppCodingStandard.html
     21  * http://geosoft.no/development/cppstyle.html
     22
     23== Good Books ==
     24
     25__Intermediate and Advanced__
     26
     27''Effective C++", and "More Effective C++'', by Scott Meyers
     28
     29
     30__Beginning__
     31
     32''C++ Primer Plus'', by Stephen Prata
     33
     34
     35__Meta rules for Coding Standards__
     36
     37''C++ Coding Standards: 101 Rules, Guidelines, and Best Practices'', by Herb Sutter and Andrei Alexandrescu.
     38
     39"look upon this primarily as a set of meta-rules... and ignore this book at your peril"
     40- Bjourne Strousturp
     41
     42== Proposed Standard ==
     43
     44
     45