Facade Design Pattern Tutorial

Facade Design Pattern TutorialWelcome to may Facade Design Pattern Tutorial! The Facade pattern is extremely easy to understand. Chances are you have used it already and just didn’t know it.

The Facade pattern basically says that you should simplify your methods so that much of what is done is in the background. In technical terms you should decouple the client from the sub components needed to perform an operation.

All of the code that follows the video will fill you in on anything you don’t catch in the video.

Continue reading Facade Design Pattern Tutorial

Adapter Design Pattern Tutorial

Adapter Design Pattern TutorialWelcome to my Adapter Design Pattern Tutorial! This is a very easy design pattern to grasp and put into use.

This pattern is used when you want to translate one interface of a class into another interface. Now, it makes sense that these 2 interfaces are compatible otherwise the pattern may not make sense. To accomplish this, all you need to do is bridge the differences using our old friend composition again.

Watch the video and look at the code below and you’ll get it.

Continue reading Adapter Design Pattern Tutorial

Delicious Healthy Sandwich

Delicious Healthy SandwichIs there any quest worth more than the quest that leads you to a delicious healthy sandwich?

How delicious? How about a meat loaf hoagie? How healthy? How about a sandwich that clocks in at just 300 calories, with 1 gram of fat, 23 grams of protein and only 8 grams of sugar!

On top of all that it is extremely cheap! The sandwich is mainly texturized vegetable protein and it costs only $2 for 10 oz. You know you want it! The recipe follows the video.

Continue reading Delicious Healthy Sandwich

Command Design Pattern Tutorial

Command Design Pattern TutorialWelcome to my Command Design Pattern Tutorial! The Command design pattern allows you to store a list of commands for later use. With it you can store multiple commands in a class to use over and over.

I cover the basic pattern in numerous ways including descriptions, diagrams and code. We look into executing commands on numerous objects. We also explore how to undo commands.

All of the code follows the video. Between it and the video you should be an expert on the Command Pattern.

Continue reading Command Design Pattern Tutorial

Decorator Design Pattern Tutorial

Decorator Design Pattern TutorialWelcome to my Decorator Design Pattern Tutorial. The Decorator allows you to modify an object dynamically. You would use it when you want the capabilities of inheritance with subclasses, but you need to add functionality at run time.

It is more flexible than inheritance. The Decorator Design Pattern simplifies code because you add functionality using many simple classes. Also, rather than rewrite old code you can extend it with new code and that is always good.

Continue reading Decorator Design Pattern Tutorial

Java Reflection Video Tutorial

Java Reflection Video TutorialWelcome to my Java Reflection Video Tutorial! I’ve been asked many times to cover Java Reflection lately and in this tutorial I’ll show you pretty much everything you can do with Java Refelection.

Many people are confused by reflection because they think it is a concept or technique. Java Reflection is an API and as soon as you know that it becomes easy. The Java Reflection API is used to manipulate classes and everything in a class including fields, methods, constructors, private data, etc. And, in this tutorial you’ll learn it all!

Continue reading Java Reflection Video Tutorial

Prototype Design Pattern Tutorial

Prototype Design Pattern TutorialWelcome to my Prototype Design Pattern Tutorial. The Prototype design pattern is used for creating new objects (instances) by cloning (copying) other objects.

It allows for the adding of any subclass instance of a known super class at run time. It is used when there are numerous potential classes that you want to only use if needed at runtime. The major benefit of using the Prototype pattern is that it reduces the need for creating potentially unneeded subclasses.

All of the code follows the video to help you learn.

Continue reading Prototype Design Pattern Tutorial

Builder Design Pattern Tutorial

Builder Design Pattern TutorialWelcome to my Builder design pattern tutorial. You use the builder design pattern when you want to have many classes help in the creation of an object. By having different classes build the object you can then easily create many different types of objects without being forced to rewrite code.

The Builder pattern provides a different way to make complex objects like you’d make using the Abstract Factory design pattern. All of the code follows the video to help you learn.

Continue reading Builder Design Pattern Tutorial

Singleton Design Pattern Tutorial

Singleton Design Pattern TutorialWelcome to my Singleton Design Pattern Tutorial. The Singleton pattern is both easy to understand as well as useful. I’ll demonstrate first how to implement the Singleton pattern. Then I’ll provide and example of its usefulness with a Scrabble example.

Threads can sometimes play havoc with this pattern, so I’ll show you how to avoid those problems. I’ll also review how to use threads, LinkedLists and more.

Continue reading Singleton Design Pattern Tutorial

YouTube Video Blocked by Copyright Claims

Think Tank LogoLately I have had many videos taken down on YouTube because of false claims from the recording industry. It seems that the recording industry is just blindly making claims on everything on YouTube lately.

What is crazy about this is that I use Apple iLife royalty free music on all of my videos. That has not kept companies like EMI from either stealing my ad revenue (which I don’t care about), but they are now forcing videos to be deleted.

Continue reading YouTube Video Blocked by Copyright Claims

Abstract Factory Design Pattern

Abstract Factory Design Pattern TutorialHere is my Abstract Factory design pattern tutorial. I also take a second look at the Factory design pattern here as well.

This is considered a hard pattern to understand, but I consider it to be a combination of all you have learned previously. You just need to understand that each step is separated by either a abstract class or an interface. This makes it possible to make extremely flexible objects.

All of the code follows the video and is heavily commented.

Continue reading Abstract Factory Design Pattern

Ivy Veronica Banas

Little IvyMy wife gave birth to my second daughter tonight at 9:52. Her name is Ivy Veronica and at birth she weighed 7 pounds and 7 ounces.

The whole process went extremely fast. My wife alerted me to contractions at 6:30 pm and we were at the hospital by 7:25 pm. She received an epidural at 9:25 pm and about 6 minutes after the doctor walked into the room she was born!

Continue reading Ivy Veronica Banas

Factory Design Pattern Tutorial

Factory Design Pattern TutorialWelcome to my Factory design pattern tutorial. This is a continuation of my design patterns video tutorial.

You use the Factory design pattern when you want to define the class of an object at runtime. It also allows you to encapsulate object creation so that you can keep all object creation code in one place.

The Factory pattern is presented in many ways to help you learn. Refer to the code that follows the video to completely understand it.

Continue reading Factory Design Pattern Tutorial