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: 5806

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: 1688

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: 3975

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: 6889

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: 3461

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: 1399

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: 3296

Anti-Patterns

An anti-pattern is a proven way to shoot yourself into your foot. The term anti-pattern was coined by Andrew Koenig, and it is pretty entertaining to read about them.

Read more
Views: 4457

About Algorithms, Frameworks, and Pattern Relations

Patterns don't live in isolation, they are in relation to each other. A relation can mean they are in contrast to each other, connected, build a sequence of patterns, build a repository of patter, or even a pattern language. Let's dive deeper into these relations.

Read more
Views: 3502

And the Five Winners for the "C++20 STL Cookbook" are

Today, I want to present the five winners for the pdf of the book "C++20 STL Cookbook" by Bill Weinman.

Read more
Views: 1615

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 4418

Yesterday 6723

Week 11141

Month 176316

All 10721432

Currently are 638 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments