Wednesday, November 26, 2008

Spelling API

Today, my friend Marco gave me a great API which can help on auto completion forms. This spelling API is based on a ternary tree and seems to be a good entry point to build a search engine.

Thanks Marco!

http://jaspell.sourceforge.net/

Monday, November 24, 2008

GWT widgets showroom

I haven't published any post about GWT for a long time. Today, I found a website showing GWT widgets, panels, listeners... in action. It's great when you have to make choice between two kinds of panel; this site allow you to see their behaviors.

http://examples.roughian.com/

Monday, November 03, 2008

Let's talk about design patterns

Do you know the difference between Adapter and Decorator patterns?

These two patterns are made to wrap objects. Humm... Same goals? Not exactly. On the first hand, the Adapter pattern is used to transform your class interface contract to another one. In the real world, you use it to "adapt" your code to an external piece of code you need.

In the other hand, with the decorator pattern, your class keeps its interface contract. You just wrap your code to bring some new features. For example, you decorate a class to integrate a counter on method calls and perform a performance test.