Inicio

November 01, 2005

Design patterns poster

I am sure you have heard about the Head First series and about the Head First Design Patterns book, because it is probably the best introductory book to understand design patterns.

Last week I was browsing amazon when I found this item: Head First Design Patterns Poster.

designPatternsPoster.jpg

As its name says, it is a poster (a big one, in fact) that contains a graph (taken from the original book), not an UML diagram but a graph that explains the pattern and also the page number of the pattern in both the Gang of four and Head First Design Patterns.

It visually summarizes 18 patterns, and it is attached to the wall in front of my computer right now...

(By the way, all the links in this post will NOT earn me a comission).

October 18, 2005

And the pattern was...

Strategy. That was the name of the pattern in yesterday's post.

October 17, 2005

An example of the guess-its-name pattern

UPDATED: This is the Strategy Pattern. So, the title of the post could be "An example of the strategy pattern in actionscript"

Professor Coupling has been enjoying his well deserved hollidays after conquering the world (yes, since the last time we knew about him he seems to have succeeded with his evil plan).

But ruling the world is quite boring. Professor Coupling misses the old times, when nobody understood him, when he could hate all the world's leaders because they ignored him... Now he has to deal with a lot of paperwork everyday, and he misses when he could hang around with his troops, telling jokes, and drinking beer.

So, he has decided that, to combat this mortal boredom, he wants to see a millitary parade everyday. A different parade everyday, formed by a different selection from his troops. One day he will ask his Marshal to form a parade with the cows from the company B, another day he will want a parade formed by all the sheeps whose name contains an "a"... Evil geniuses...

Continuar leyendo "An example of the guess-its-name pattern" »

August 04, 2005

An example of the memento pattern ( the java version )

Conquering the world is not easy. You and me both know it. And Professor Coupling knows it too.

He has the knowdlege, he has a plan, he has the skills, and he has even the looks, but there are a lot of little details to care for before he can finally conquer the world!!.

In previous posts, be have seen how he has implemented the prototype pattern ( to create his army of clones –hey, I’ve just noticed the joke- ), the extension objects pattern ( to assign their roles ), the command pattern ( to assign them their orders ) and the observer pattern ( to implement a communications system ). It seems that Professor Coupling has had a lot of work, but was it enough?. NO!! ( muhahahahahahaha ).

Continuar leyendo "An example of the memento pattern ( the java version )" »

An example of the memento pattern ( the actionscript version )

Conquering the world is not easy. You and me both know it. And Professor Coupling knows it too.

He has the knowdlege, he has a plan, he has the skills, and he has even the looks, but there are a lot of little details to care for before he can finally conquer the world!!.

In previous posts, be have seen how he has implemented the prototype pattern ( to create his army of clones –hey, I’ve just noticed the joke- ), the extension objects pattern ( to assign their roles ), the command pattern ( to assign them their orders ) and the observer pattern ( to implement a communications system ). It seems that Professor Coupling has had a lot of work, but was it enough?. NO!! ( muhahahahahahaha ).

Continuar leyendo "An example of the memento pattern ( the actionscript version )" »

June 02, 2005

An example of the Observer pattern

Be aware!. Professor Coupling and his army of clones are ready!.The final attack is going to be launched quite soon!. And their weapons are actionScript and design patterns!

In the previous posts, we’ve seen how Professor Coupling is able to clone any animal, and how he’s able to assign different roles to those clones. Oh, and he has also found the way to assign any animal its orders. Muhahahahahaha

Continuar leyendo "An example of the Observer pattern" »

An example of the Observer pattern (the java version)

Be aware!. Professor Coupling and his army of clones are ready!.The final attack is going to be launched quite soon!. And their weapons are actionScript and design patterns! In the previous posts, we’ve seen how Professor Coupling is able to clone any animal, and how he’s able to assign different roles to those clones. Oh, and he has also found the way to assign any animal its orders. Muhahahahahaha

Continuar leyendo "An example of the Observer pattern (the java version)" »

May 24, 2005

How to use design patterns

Bill Venners has published a conversation with Erich Gamma, where they talk "about the right way to think about and use design patterns".

They talk about a lot of interesting points regarding the use of design patterns, like how should be our attitude about them, if design patterns are a "buzzword", and the flexibility they provide to our designs.

I think it can be a very interesting read.

Here's the link: How to use design patterns

April 26, 2005

An example of the Command Pattern

Everything is ready. The sheeps and the cows are cloned, and their roles have been assigned. It’s time for Professor Coupling to launch the final attack. It’s time to conquer the world!!!.

But how will Professor Coupling give his troops the order to launch the attack?.

Continuar leyendo "An example of the Command Pattern" »

An example of the Command Pattern ( the Java Version )

Everything is ready. The sheeps and the cows are cloned, and their roles have been assigned. It’s time for Professor Coupling to launch the final attack. It’s time to conquer the world!!!.

But how will Professor Coupling give his troops the order to launch the attack?.

Continuar leyendo "An example of the Command Pattern ( the Java Version )" »

April 06, 2005

An example of the Extension Objects pattern ( the java version )

Do you remember Professor Coupling?. Do you remember his evil plans to conquer the world?.

Today, we’ll see how the Extension Objects pattern ( or “how to change the interface that a class implements at runtime” ) has helped Professor Coupling. It won’t be an easy task, because this is a complex pattern, but who said that being an evil genius was easy?.

Continuar leyendo "An example of the Extension Objects pattern ( the java version )" »

An example of the Extension Objects pattern

Do you remember Professor Coupling?. Do you remember his evil plans to conquer the world?.

Today, we’ll see how the Extension Objects pattern ( or “how to change the interface that a class implements at runtime” ) has helped Professor Coupling. It won’t be an easy task, because this is a complex pattern, but who said that being an evil genius was easy?.

Continuar leyendo "An example of the Extension Objects pattern" »

March 29, 2005

An example of the Prototype Pattern ( the Java version )

Professor Coupling is a Spanish scientific that is planning to conquer the world. Do you want to read about the problems he encountered, and how he solved them using the prototype pattern?

Continuar leyendo "An example of the Prototype Pattern ( the Java version )" »

An example of the Prototype Pattern

Professor Coupling is a Spanish scientific that is planning to conquer the world. Do you want to read about the problems he encountered, and how he solved them using the prototype pattern?

Continuar leyendo "An example of the Prototype Pattern" »