Tuesday, November 24, 2020

Decorator design pattern demo in C++

The Decorator is a structural design pattern that allows the adding of new behaviors to an object dynamically by placing those behaviors inside a special wrapper object.

Using decorators you can wrap objects countless number of times since both target objects and decorators follow the same interface. The resulting object will get a stacking behavior of all the wrappers.





Thursday, November 12, 2020

The Bridge pattern slides


today I plan to take a closer look at the program design pattern known as the Bridge pattern as described by the Gang of 4 aka the fantastic four.


The bridge pattern is a design pattern used in to decouple an abstraction from its implementation so that the two can vary independently.


The bridge uses encapsulation, aggregation, and can use inheritance to separate responsibilities into different classes.


in today’s example we will be using C++

you can find this code in the online repo I have set up at github 

I’ll post a URL for the repo


Saturday, November 07, 2020

Adapter design pattern using Java



Adapter design pattern using Java
The adapter design pattern is one of the twenty-three well-known GoF design patterns that describe how to solve recurring design problems to design flexible and reusable object-oriented software

Tuesday, November 03, 2020

Adapter design pattern using PHP



The Adapter pattern lets you convert the interface of one class to another.


The Adapter pattern lets classes work together that otherwise could not


The Strategy Design Pattern a Behavioral Pattern using C++

The Strategy Design Pattern is a behavioral design pattern that enables selecting an algorithm's implementation at runtime. Instead of i...