Packt
Structural Design Patterns in Modern C++
Packt

Structural Design Patterns in Modern C++

Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

9 hours to complete
3 weeks at 3 hours a week
Flexible schedule
Learn at your own pace
Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

9 hours to complete
3 weeks at 3 hours a week
Flexible schedule
Learn at your own pace

What you'll learn

  • Identify and describe key structural design patterns in C++.

  • Explain the intent and application of S.O.L.I.D. principles and design patterns like Adapter, Façade, and Proxy.

  • Differentiate between the pros and cons of each design pattern and decide when to apply them.

  • Assess the performance impact and code quality improvements after applying design patterns.

Details to know

Earn a career certificate

Add to your LinkedIn profile

Recently updated!

October 2024

Assessments

4 assignments

Taught in English

See how employees at top companies are mastering in-demand skills

Placeholder
Placeholder

Earn a career certificate

Add this credential to your LinkedIn profile, resume, or CV

Share it on social media and in your performance review

Placeholder

There are 8 modules in this course

In this module, we will explore the fundamental concepts of design patterns in modern C++. We begin with an introduction to design patterns and UML class diagrams, then dive into the S.O.L.I.D. principles that serve as foundational guidelines for writing efficient and scalable code. The module concludes with a high-level overview of structural design patterns, setting the stage for deeper exploration in later sections.

What's included

7 videos1 reading

In this module, we will explore the Adapter Design Pattern, a key structural pattern used to reconcile incompatible interfaces in software. We begin with an introduction to the pattern and a basic example, followed by a hands-on application using game input. You'll learn the steps for implementation and understand the differences between object and class adapters, concluding with an analysis of the pattern's strengths and limitations.

What's included

7 videos

In this module, we will dive into the Façade Design Pattern, which simplifies complex subsystems by providing a unified interface. We begin with a basic overview and example, followed by a four-part series where you'll build a console project using the façade pattern. Additionally, we will explore how to create a façade for Linux systems and wrap up with a discussion of the pros and cons of this pattern in modern software architecture.

What's included

8 videos1 assignment

In this module, we will explore the Proxy Design Pattern, which provides a surrogate or placeholder for another object to control access. We will introduce key variations, such as virtual, protection, and remote proxies, demonstrating how to implement and apply them in real-world applications. You'll also learn how remote proxies function in distributed systems and delve into smart proxies for enhanced functionality. The module concludes with an evaluation of the benefits and trade-offs of using proxy patterns in software design.

What's included

13 videos

In this module, we will explore the Decorator Design Pattern, which allows for adding responsibilities to objects dynamically without altering their structure. Starting with an introduction and basic example, we move on to building decorators for streams, adding buffering, encryption, and compression functionalities. You'll learn how to implement the abstract decorator class and understand the differences between composition and inheritance in design. The module concludes with a breakdown of decorator types and an analysis of the pattern's strengths and limitations.

What's included

13 videos

In this module, we will explore the Composite Design Pattern, which enables developers to treat individual objects and compositions of objects uniformly. We begin with an introduction to the pattern and a basic example, followed by a detailed application-to-user interface (UI) design. Through a three-part series, you will learn how to implement a UI class hierarchy and handle issues like adding parent pointers. The module concludes with an analysis of the pros and cons of using the composite pattern in various software designs.

What's included

8 videos1 assignment

In this module, we will explore the Bridge Design Pattern, which separates an object's abstraction from its implementation to enable independent changes. We begin with an introduction and a basic example, followed by practical applications such as building a shape hierarchy and adding OpenGL support. You’ll also learn how to address hierarchy issues and implement advanced techniques like the handle-body and PImpl idioms. Finally, we’ll discuss the static bridge and evaluate the pattern’s strengths and weaknesses in different contexts.

What's included

15 videos

In this module, we will explore the Flyweight Design Pattern, which minimizes memory usage by sharing common object states. We begin with an introduction and a basic implementation, followed by a three-part series on applying the pattern in game development for managing 3D models. You'll also learn how to implement string interning and use Boost.Flyweight to further optimize resource management. The module concludes with a discussion of the pattern's advantages and limitations, especially in performance-critical applications.

What's included

11 videos2 assignments

Instructor

Packt - Course Instructors
Packt
371 Courses9,008 learners

Offered by

Packt

Why people choose Coursera for their career

Felipe M.
Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."
Jennifer J.
Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."
Larry W.
Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."
Chaitanya A.
"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."

New to Software Development? Start here.

Placeholder

Open new doors with Coursera Plus

Unlimited access to 7,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription

Advance your career with an online degree

Earn a degree from world-class universities - 100% online

Join over 3,400 global companies that choose Coursera for Business

Upskill your employees to excel in the digital economy

Frequently asked questions