Techniques

Techniques

Go to chapter  

Code Review 1: The Cleanup

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

Code Review 2: Hiding Implementation Details

  • Using Embedded Classes
  • Hiding Constants in Enumerations
  • Hiding Constants in Local Variables
Go to chapter  

Code Review 3: Sharing

  • Isolating Global Parameters
  • Testing Boundary Conditions
  • Code Reuse through Templates
Go to chapter  

Code Review 4: Removing Limitations

  • Dynamic Array
  • Separating Functionality into New Classes
Go to chapter  

Code Review 5: Resource Management

  • Exceptions
  • Stack Unwinding
  • Resources
  • Auto Pointers
  • Auto Vectors
Go to chapter  

Code Review 6: Making Use of Standard Template Library

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

Code Review 7: Serialization and Deserialization

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

Overloading operator new

  • Class-specific new
  • Global new