Entries by Rainer Grimm

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.

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.

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.

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.

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.

The Structure of Patterns

The classics “Design Patterns: Elements of Reusable Object-Oriented Software”, and “Pattern-Oriented Software Architecture, Volume 1” use similar steps to present their pattern. Today, I will present this structure of a pattern.