Download Elements of C++ Style by Misfeldt T., Gray A., Metz E. PDF

By Misfeldt T., Gray A., Metz E.

Except they've got set criteria previously, groups of programmers will locate it tough to learn and use each one others' code in the first couple of minutes of the initiation of a venture. notwithstanding, making a usual can take extra time than the venture itself. so one can decrease frustration and inefficiency, those authors, all of whom are high-end clients and builders, supply common rules for C++ code, together with ideas and conventions for naming, documentation, programming, and packaging, and a quick thesaurus.

Show description

Read or Download Elements of C++ Style PDF

Best programming: programming languages books

Fortran 90 for Fortran 77 programmers

The luck of Fortran because the major programming language within the box of medical and numerical computing is due, partly, to its regular evolution. Following the e-book of criteria in 1966 and 1978, the committee chargeable for their improvement, X3J3, labored at the side of an ISO committee to improve a regular compatible to be used within the 1990's and past.

Additional resources for Elements of C++ Style

Example text

Concurrent Programming in JavaTM : Design Principles and Patterns. (Reading, Massachusetts: Addison-Wesley, 1997), pp. 1–2.

TEAM LinG 36 THE ELEMENTS OF C++ STYLE 48. Use the Active Voice to Describe Actors and Passive Voice to Describe Actions In English prose, the active voice is normally preferred over the passive voice. However, this is not always the case in technical documentation. This is especially true when a document provides usage instructions. Use the active voice when the actor in a situation is important. Prefer: ■ ■ A Time object represents a point in time. Use time()to get the current system time. Avoid: ■ ■ A point in time is represented by a Time object.

In a concurrent environment, a programmer maintains desirable program states by limiting or negotiating access to shared resources using synchronization. The principal role of synchronization is to prevent undesirable or unanticipated interference between simultaneously executing instruction sequences. Synchronization describes the set of mechanisms or processes for preventing undesirable interleaving of operations or interference between concurrent threads. This is primarily accomplished by serializing access to a shared program state.

Download PDF sample

Rated 4.73 of 5 – based on 24 votes