Memento Design Pattern Tutorial

Welcome to my Memento Design Pattern Tutorial! The Memento design pattern provides a way to store previous states of an Object easily. It has 3 main classes. Memento: The basic object that is stored in different states. Originator: Sets and Gets values from the currently targeted Memento....

Mediator Design Pattern Tutorial

Welcome to my Mediator Design Pattern Tutorial! The Mediator design pattern is used to handle communication between related objects (Colleagues). All communication is handled by a Mediator Object and the Colleagues don’t need to know anything about each other to work together. The Gang of Four...

Make Java Executable

I’ve been asked many times to show how to make a java program executable. It is actually very easy to make Java executable on any computer. The main tool you’ll use on a PC is the Command Line or DOS Prompt. To find it click Start and in the box at the bottom type cmd.exe. If...

Interpreter Design Pattern Tutorial

Welcome to my Interpreter Design Pattern Tutorial! The Interpreter design pattern is ignored by most, but in this tutorial I’ll show you how to do some cool things with it. In top of that, I’ll also answer all of the recent questions I’ve received about both Java Reflection and...

Mac Game Controller

I’ve been asked my opinion on the Best Mac Game Controller recently many times, so this weekend I tried a bunch of Mac game controllers out. Even though you may have heard otherwise, the XBox 360 controllers and the off brand versions don’t work consistently. After trying 5 Mac game...

Chain of Responsibility Design Pattern Tutorial

Welcome to my Chain of Responsibility Design Pattern Tutorial! Wow, that was a mouthful! This pattern has a group of objects that are expected to between them be able to solve a problem. If the first Object can’t solve it, it passes the data to the next Object in the chain. In this...

Proxy Design Pattern Tutorial

Welcome to my Proxy Design Pattern Tutorial! The Proxy design pattern limits access to just the methods you want made accessible in another class. It can be used for security reasons, because an Object is intensive to create, or is accessed from a remote location. You can think of it as a gate...

State Design Pattern Tutorial

Welcome to my State Design Pattern Tutorial! I explain how the state pattern is used by using it to simulate an ATM machine. I explain how you come to decide on the different states. I then show you how to design the interface that each state will use. We think about the methods that are needed...

Easy Veggie Burger Recipe

Previously I showed you my black bean veggie burger recipe and this time I’ll show you my easy veggie burger recipe. I actually prefer the taste of this recipe and it is much cheaper. It costs about 50 cents a burger! I started experimenting with veggie burger recipes a while back because...

Flyweight Design Pattern Tutorial

Welcome to my Flyweight Design Pattern Tutorial! The flyweight design pattern is used to dramatically increase the speed of your code when you are using many similar objects. To reduce memory usage the flyweight design pattern shares Objects that are the same rather than creating new ones. In...

« Older Entries

Google+