This is a set of examples for many different design patterns I have been learning over the course of my time as a software engineer. With each example I will attempt to give a basic demonstration of the pattern in action, as well as a brief outline of its purpose.
The strategy pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy lets the algorithm vary independantly from clients that use it. The observer pattern defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.joshuasledden / design-patterns Goto Github PK
View Code? Open in Web Editor NEWA series of examples both describing and demonstrating design patterns in programming.
License: MIT License