Notifiers make anonymous communication between objects in a system possible. They are also easy to understand, providing a seamless migration as new developers are introduced to a project. This article describes the design and implementation of Notifiers in C++.
Latest Patterns Articles
Gain an overview on what a design pattern is and how they employed in developing MFC library.
Provides a very fine C++ implementation of the Observer Pattern (implementing cyclic updates, self reference, etc.)
This C++ tutorial shows you how to avoid object dependencies using the Observer Pattern, and explains when and why the Observer Pattern is needed, its benefits and liabilities.
Applying Strategy Pattern in C++ Applications
Bridge Pattern - Bridging the gap between Interface and Implementation
Latest Developer VideosMore...
Latest CodeGuru Developer Columns
It's essential to know the differences in these libraries and use them correctly. This brief tutorial will guide you.
With facilities to search, copy, extract segments, and more, the array class can handle pretty much any task you need to perform with ease.
Learn about delegates, a type that represents a reference to physical methods with the same parameter list and return type.
If you have written solid code, you have accomplished one half of the objective. Solid code is the protagonist, or hero, of our story, but testing is the more sedate side kick that often saves the day after the hubris of the hero has almost certainly lead to calamity.