Reliable Software Logo
 Home  >  C++ Resources  > C++ In Action Book > Language

C++ In Action: Techniques

 

Code Review 1: The Cleanup

  • Improving Code Grouping
  • Decoupling the Output
  • Fighting Defensive Programming
  • A Case of Paranoid Programming
  • Fringes
  • Improving Communication Between Classes
  • Correcting Design Flaws

Code Review 2: Hiding Implementation Details

  • Using Embedded Classes
  • Hiding Constants in Enumerations
  • Hiding Constants in Local Variables

Code Review 3: Sharing

  • Isolating Global Parameters
  • Testing Boundary Conditions
  • Code Reuse through Templates

Code Review 4: Removing Limitations

  • Dynamic Array
  • Separating Functionality into New Classes

Code Review 5: Resource Management

  • Exceptions
  • Stack Unwinding
  • Resources
  • Auto Pointers
  • Auto Vectors

Code Review 6: Making Use of Standard Template Library

  • Associative Arrays
  • Reference Counting and Copy-on-Write
  • Exploring Streams

Code Review 7: Serialization and Deserialization

  • The Calculator Object
  • Command Parser
  • Serialization and Deserialization
  • In-memory (De-) Serialization
  • Multiple Inheritance
  • Transactions

Overloading operator new

  • Class-specific new
  • Global new