Ant WangIntuitive Approach to State and Strategy Patterns in C++State and Strategy our considered two of the important design patterns to understand and add to your design toolbox (source) but when I…9 min read·Sep 28, 2023----
Ant WangUnfolding the Multiple Definition Linker ErrorTwo of the common linker errors we will see are:7 min read·Sep 4, 2023----
Ant WangChain of Responsibility in C++Chain of Responsibility (CoR) is another design pattern that produces a peculiar effect when implemented. It reminds me of a coin sorter —…10 min read·Aug 30, 2023--2--2
Ant WangDecorator in C++, the Right WayThough the decorator design is not considered one of the most important design patterns to master as a programmer, I definitely had a lot…7 min read·Aug 26, 2023--1--1
Ant WangAdapter in C++, the Right WayAdapter is a structural design pattern that allows objects with incompatible interfaces to collaborate.7 min read·Aug 26, 2023--2--2
Ant WangSingleton in C++Continuing with the series where I share my learnings on design pattern from Refactoring Guru, after reading the tutorial on Singleton, I…5 min read·Aug 23, 2023--3--3
Ant WangBuilder Pattern in C++, the Right WayThere are many ways people interpret Builder Design Pattern. The core of the Builder Pattern is to replace a constructor call overfilled…10 min read·Aug 22, 2023--2--2
Ant WangFactory Method in C++, the Right WayOne of the first design patterns you will encounter, and maybe you have already implemented it without knowing, is the factory method…10 min read·Aug 21, 2023--1--1
Ant WangC++ Arrays — Variable Size and Function ReturnThere are a lot of restrictions when using array so most people tend to resort to std::vector which is a lot more flexible, offers…3 min read·Aug 16, 2023--1--1
Ant WangVirtual Destructors & Inheritance in C++When we work with inheritance, the order of calling constructors and destructors can be summarized as the following:3 min read·Aug 15, 2023----