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…Sep 28, 2023Sep 28, 2023
Ant WangUnfolding the Multiple Definition Linker ErrorTwo of the common linker errors we will see are:Sep 4, 2023Sep 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 —…Aug 30, 20232Aug 30, 20232
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…Aug 26, 20232Aug 26, 20232
Ant WangAdapter in C++, the Right WayAdapter is a structural design pattern that allows objects with incompatible interfaces to collaborate.Aug 26, 20232Aug 26, 20232
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…Aug 23, 20233Aug 23, 20233
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…Aug 22, 20232Aug 22, 20232
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…Aug 21, 20232Aug 21, 20232
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…Aug 16, 20231Aug 16, 20231
Ant WangVirtual Destructors & Inheritance in C++When we work with inheritance, the order of calling constructors and destructors can be summarized as the following:Aug 15, 2023Aug 15, 2023