O'Reilly logo

Backbase 4 RIA Development by Sergey Ilinsky, Ghica van Emde Boas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A square puzzle

We are going to end this book with a puzzle and a challenge—both a real and a metaphorical square puzzle. Real, because it is square as you can see from the screenshot a few pages later. Metaphorical, because the code of the puzzle is a squared JavaScript using TDL to the max.

One of the authors thinks this is a good example of what can be achieved in a simple way using TDL. The other author thinks this example is a bridge too far in using component composition. Therefore, we entered this puzzle as a challenge for improvement and as a pun on the title of this chapter.

The example we are going to describe is an implementation of a puzzle you all know from childhood: the 15 square puzzle.

The puzzle has a 4 x 4 square board with 15 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required