Fading Coder

One Final Commit for the Last Sprint

Command Pattern: Decoupling Command Issuers from Executors

Overview The Command Pattern encapsulates requests as command objects, allowing parameterization of clients with different requests, queuing of requests, and supporting undoable operations. The pattern decouples the object invoking the operation from the one that knows how to perform it. Consider a...

Implementing a Reusable Singleton Template in C++

The Singleton Pattern: Restricting Object Creation Controlling Class Instantiation A singleton restricts a class to having only one instance through out the program's lifetime. To achieve this, the constructor must be hidden from external code: Declare the constructor with private access Provide a s...