The Bridge Pattern

The Bridge Pattern is a structural pattern. It decouples the interface from the implementation. In C++, a simplified version is often used: the Pimpl Idiom.

Read more
Views: 10276

The Adapter Pattern

The idea of the adapter pattern is straightforward: It converts the interface of a class into another interface.

Read more
Views: 8902

Five Coupons for the eBook "Template Metaprogramming with C++"

I'm happy to announce that I have five giveaway eBooks for "Template Metaprogramming with C++" by Marius Bancila. In return, I have two questions about templates. The five best answers will get the coupons.

Read more
Views: 2052

The Singleton: The Alternatives Monostate Pattern and Dependency Injection

So far, I have discussed in my previous posts the Singleton Pattern, and its pros and cons. One question is still open: What alternatives for the Singleton Pattern are available? Today, I write about the Monostate Pattern and Dependency Injection.

Read more
Views: 7406

Concepts and the Finance Industry

The finance industry is a big user of C++.  But as everyone knows, C++ programmers take on a substantial burden of complexity relative to other languages.  Why would they do that?  In a word: for performance.  With C++, you retain full semantic expressiveness without sacrificing any speed.  But that complexity can be tough.

Read more
Views: 2247

The Singleton: Pros and Cons

I introduced in my last post "The Singleton", the classical Singleton and the so-called Meyers Singleton. The Singleton Pattern is highly controversial. Let me, therefore, discuss in this post the pros and cons of the Singleton.

Read more
Views: 7356

The Singleton

The most controversial Design Pattern from the book  "Design Patterns: Elements of Reusable Object-Oriented Software" is the Singleton Pattern. Let me introduce it before I discuss its pros and cons.

Read more
Views: 9620

The Factory Method (Slicing and Ownership Semantics)

In the last installment of this blog, I introduced the Factory Method: Creational Patterns: Factory Method 1. My implementation had two serious issues: slicing and ownership semantics. Today, I fix these issues.

Read more
Views: 4557

Stop Training, Start Mentoring

Training and mentoring aim one goal: to improve your skills in a well-defined way. Although both aim for the same goal, they use very different ways. One may fit your needs, but not the other.

Read more
Views: 1784

The Factory Method

The classic book "Design Patterns: Elements of Reusable Object-Oriented Software" has 23 patterns. They are ordered by intent: creational, structural, and behavioral patterns. Today,  I focus on the creational pattern Factory Method.

Read more
Views: 5879

Mentoring

Stay Informed about my Mentoring

 

English Books

Course: Modern C++ Concurrency in Practice

Course: C++ Standard Library including C++14 & C++17

Course: Embedded Programming with Modern C++

Course: Generic Programming (Templates)

Course: C++ Fundamentals for Professionals

Interactive Course: The All-in-One Guide to C++20

Subscribe to the newsletter (+ pdf bundle)

Blog archive

Source Code

Visitors

Today 7136

Yesterday 6867

Week 21041

Month 7136

All 11302550

Currently are 358 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments