Wednesday 

Room 4 

10:20 - 11:20 

(UTC+02

Talk (60 min)

Design Patterns - The Most Common Misconceptions (2 of N)

Design patterns are everywhere, as they are the key to managing dependencies between software entities.

C++
Technique

But despite their fundamental importance, there are some common misconceptions about them, in particular about several of the most often used design patterns:

  • The modern form of the Visitor design pattern, std::variant, is often considered a replacement of virtual functions.
  • The Decorator design pattern is sometimes mistaken as the Adapter design pattern.
  • The Chain of Responsibility design pattern is often confused with Decorators.
  • Explicit object parameters (“deducing this”) is often named as a modern, better form of CRTP.

In this talk I'll shed some light on these misconceptions and explain how to properly distinguish between the different
design patterns.

Klaus Iglberger

Klaus Iglberger is a freelance C++ trainer and consultant. He shares his expertise in popular C++ courses — from beginner to advanced — all around the world. He is the author of “C++ Software Design” [1], one of the organizers of the Munich C++ user group [2], and the (co-)organizer of the Back-to-Basics [3] and Software Design [4] tracks at CppCon.

[1] https://learning.oreilly.com/library/view/c-software-design/9781098113155/
[2] https://www.meetup.com/MUCplusplus/
[3] https://cppcon.org/b2b/
[4] https://cppcon.org/softwaredesign/