Video description
The best way to solve common object-oriented design problems is by implementing design patterns. However, understanding and learning design patterns can be time-consuming and intimidating, but this course has got you covered! With Creational Design Patterns in Modern C++, you’ll learn how to understand and implement creational design patterns in C++ with the help of engaging examples.
The course begins with an introduction to creational patterns, giving you a tour of UML class diagrams and SOLID principles. You’ll become familiar with logger classes, multithreading, and patterns and gain a solid understanding of singletons in C++. As you progress, you’ll get to grips with the factory method and find out how to implement it in the application framework. Once you’ve covered the intent, structure, and implementation of the object pool pattern, you’ll discover how to use the abstract factory pattern. Finally, you’ll delve into prototype implementation with the help of a gaming example and apply the builder pattern.
By the end of this course, you’ll have developed skills needed to create and implement patterns in modern C++.
What You Will Learn
- Implement singleton in C++ with thread-safety
- Use the factory method to encapsulate the construction process
- Avoid repetitive construction with object pool pattern
- Control the construction process of an object using the builder design pattern
- Control the construction process of an object using the builder design pattern
- Construct objects based on a context using abstract factory
Audience
Whether you are new to design patterns or an experienced software or C++ developer or a project manager who wants to implement creational design patterns using modern C++, this course is for you. Basic knowledge of C++ and object-oriented programming is necessary to get started with this course.
About The Author
Umar Lone: Umar Lone is a civil engineer who found his calling in software development. He started teaching C++ and Visual C++ 15 years ago. Currently, he trains software professionals in various software companies in India in different technologies, such as modern C++, advanced C++, STL, design patterns, Android, Unity, Linux, and more. He is extremely passionate about teaching and has trained more than 20,000 software professionals.
An avid gamer, Umar is currently trying his hand at game development in Unity and Unreal. He has a few Android applications to his credit, including one on design patterns. The only thing he likes more than C++ is Modern C++.
Table of contents
- Chapter 1 : Introduction
-
Chapter 2 : Singleton
- Introduction
- Basic Example
- Logger Class - Part I
- Logger Class - Part II
- Lazy Instantiation
- Destruction Policies
- Multithreading Issues
- Why a Double-Checked Locking Pattern (DCLP) Fails?
- Meyer's Singleton
- Using the std::call_once Function
- CRTP Idiom
- Clock Class
- Monostate Pattern
- Singleton Versus Monostate
- Singleton Issues
- Registry of Singletons - Part I
- Registry of Singletons - II
- Pros and Cons
- Chapter 3 : Factory Method
- Chapter 4 : Object Pool
- Chapter 5 : Abstract Factory
-
Chapter 6 : Prototype
- Introduction
- Cloning Types
- Basic Example
- Game - Introduction
- Game Implementation - Part I
- Game Implementation - Part II
- Game Implementation - Part III
- Cloning Example
- Game Implementation - Part IV
- Game Implementation - Part V
- Game Implementation - Part VI
- Class Versus Object
- Varying State
- Prototype Manager - Part I
- Prototype Manager - Part II
- Memory Management
- Pros and Cons
- Chapter 7 : Builder
Product information
- Title: Creational Design Patterns in Modern C++
- Author(s):
- Release date: October 2020
- Publisher(s): Packt Publishing
- ISBN: 9781800568242
You might also like
video
Structural Design Patterns in Modern C++
With design patterns, it is very easy to solve common object-oriented design problems. However, understanding and …
video
Modern C++ Design Patterns
This course provides beginning to intermediate C++ developers with the knowledge required for up-to-date C++ programming. …
video
Behavioral Design Patterns in C++
The course takes a structured approach to explain each pattern, starting with an introduction and then …
book
Design Patterns in Modern C++: Reusable Approaches for Object-Oriented Software Design
Apply modern C++17 to the implementations of classic design patterns. As well as covering traditional design …