Practical C++ Design

From Programming to Architecture

  • Adam B. Singer

Table of contents

  1. Front Matter
    Pages i-xx
  2. Adam B. Singer
    Pages 1-7
  3. Adam B. Singer
    Pages 9-29
  4. Adam B. Singer
    Pages 31-55
  5. Adam B. Singer
    Pages 57-96
  6. Adam B. Singer
    Pages 97-113
  7. Adam B. Singer
    Pages 115-144
  8. Adam B. Singer
    Pages 145-193
  9. Adam B. Singer
    Pages 195-223
  10. Back Matter
    Pages 225-246

About this book


This book will help the reader take the step from competent C++ developer to designer or architect. It includes some C++ 17.  Intended to be a master class in C++ design in a book, Practical C++ Design guides the reader through the design and C++ implementation of a fun and engaging case study. The journey begins with a quick exploration of the requirements for building the case study, a multi-platform Reverse Polish Notation calculator. Next, the reader delves into selecting an appropriate architecture, eventually designing and implementing all of the necessary modules to meet the calculator’s requirements. By the conclusion of the book, the reader will have constructed a fully functioning calculator that builds and executes on multiple platforms. The book includes access to the author’s complete implementation, which is available for download from GitHub.

Explore the Model-View-Controller pattern as we determine the optimal a
rchitecture for the calculator. Explore the observer pattern as we learn how to design an event system. Explore the singleton pattern as we design the calculator’s central data repository, a reusable stack. Explore the command pattern as we design a command system supporting unlimited undo/redo. Explore the abstract factory pattern as we design a cross-platform plugin infrastructure for making the calculator extensible. Explore these topics and more as you gain practical experience learning from an expert how to use modern C++ effectively to design a complete desktop application

What you will learn:

• Learn to read a specification and translate it into a practical C++ design.
• Understand trade-offs in selecting between alternative design scenarios.
• Gain practical experience in applying design patterns to realistic development scenarios.
• Learn how to effectively us
e language elements of modern C++ to create a lasting design.
• Implement a complete C++ program from a blank canvas through to a fully functioning,
cross platform application.
• Learn to read, modify, and extend an existing, high quality code.
• Learn the fundamentals of API design, including class, module, and plugin interfaces.


C++ design programming software engineering architecture development code patterns

Authors and affiliations

  • Adam B. Singer
    • 1
  1. 1.The WoodlandsUSA

Bibliographic information