Preview Mode Links will not work in preview mode

Develpreneur: Become a Better Developer and Entrepreneur

Jan 30, 2019

The visitor pattern is the last of the behavioral ones for us to review.  This is going to feel similar to some others that allow us to abstract functionality such as a command.  This one provides us with a way to group functionality and avoids duplication or even sprawl of our code.

The Visitor Pattern Defined

As...


Jan 28, 2019

In the last episode, we looked at abstracting algorithms.  Now we examine the template method pattern and how it allows us to abstract steps of an algorithm.  Thus, providing a template for implementation while leaving the freedom for subclasses to handle the details.

The Template Method Pattern Defined

As always, we...


Jan 25, 2019

Our review of the behavioral design patterns moves on to look at the Strategy pattern.  This is one that you might not recognize from the name.  However, it is relatively common in use (or at least it should be).

The Strategy Pattern Defined

As always, we will start with the "Gang of Four" intent to set the stage for...


Jan 23, 2019

We tackle the memento pattern in this episode.  If you ever wanted to store the state of an object, then this is the one for you.  You can think of this pattern as a way to take note of your instance and store it for later.

The Memento Pattern Defined

As always, we will start with the "Gang of Four" intent to set the...


Jan 21, 2019

In this episode, we look at the state pattern.  It is a design that uses object-oriented tactics to provide a class with very different functionality based on its current state.  I think you will find this to be one that is not often going to be evident in your first pass of a design.

The State Pattern Defined

As...