we should be able to publish the page from main branch
[CppCoreGuidelines.git] / README.md
blobb2662966145091472f7b7b9d03961c4a29cf3377
1 [![C++ Core Guidelines](cpp_core_guidelines_logo_text.png)](http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines)
3 >"Within C++ is a smaller, simpler, safer language struggling to get out."
4 >-- <cite>Bjarne Stroustrup</cite>
6 The [C++ Core Guidelines](CppCoreGuidelines.md) are a collaborative effort led by Bjarne Stroustrup, much like the C++ language itself. They are the result of many
7 person-years of discussion and design across a number of organizations. Their design encourages general applicability and broad adoption but
8 they can be freely copied and modified to meet your organization's needs.
10 ## Getting started
12 The guidelines themselves are found at [CppCoreGuidelines](CppCoreGuidelines.md). The document is in [GH-flavored MarkDown](https://github.github.com/gfm/). It is intentionally kept simple, mostly in ASCII, to allow automatic post-processing such as language translation and reformatting. The editors maintain one
13 [version formatted for browsing](http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines). Note that it is manually integrated and can be slightly older than the version in the master branch.
15 The Guidelines are a constantly evolving document without a strict "release" cadence. Bjarne Stroustrup periodically reviews the document and increments the version number in the introduction. [Checkins that increment the version number](https://github.com/isocpp/CppCoreGuidelines/releases) are tagged in git. 
17 Many of the guidelines make use of the header-only Guidelines Support Library. One implementation is available at [GSL: Guidelines Support Library](https://github.com/Microsoft/GSL).
19 ## Background and scope
21 The aim of the guidelines is to help people to use modern C++ effectively. By "modern C++" we mean C++11 and newer. In other
22 words, what would you like your code to look like in 5 years' time, given that you can start now? In 10 years' time?
24 The guidelines are focused on relatively higher-level issues, such as interfaces, resource management, memory management, and concurrency. Such
25 rules affect application architecture and library design. Following the rules will lead to code that is statically type-safe, has no resource
26 leaks, and catches many more programming logic errors than is common in code today. And it will run fast -- you can afford to do things right.
28 We are less concerned with low-level issues, such as naming conventions and indentation style. However, no topic that can help a programmer is
29 out of bounds.
31 Our initial set of rules emphasizes safety (of various forms) and simplicity. They may very well be too strict. We expect to have to introduce
32 more exceptions to better accommodate real-world needs. We also need more rules.
34 You will find some of the rules contrary to your expectations or even contrary to your experience. If we haven't suggested that you change your
35 coding style in any way, we have failed! Please try to verify or disprove rules! In particular, we'd really like to have some of our rules
36 backed up with measurements or better examples.
38 You will find some of the rules obvious or even trivial. Please remember that one purpose of a guideline is to help someone who is less
39 experienced or coming from a different background or language to get up to speed.
41 The rules are designed to be supported by an analysis tool. Violations of rules will be flagged with references (or links) to the relevant rule.
42 We do not expect you to memorize all the rules before trying to write code.
44 The rules are meant for gradual introduction into a code base. We plan to build tools for that and hope others will too.
46 ## Contributions and LICENSE
48 Comments and suggestions for improvements are most welcome. We plan to modify and extend this document as our understanding improves and the
49 language and the set of available libraries improve. More details are found at [CONTRIBUTING](./CONTRIBUTING.md) and [LICENSE](./LICENSE).
51 Thanks to [DigitalOcean](https://www.digitalocean.com/?refcode=32f291566cf7&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=CopyPaste) for hosting the Standard C++ Foundation website.