Like the tale of Goldilocks and the Three Bears we’re seeking a way to get more of you involved in the Golden Lunch Bucket contests—trying to find the one that is just right. As noted in our original announcement (where you find the link to download the Dragon Factory) all you need to do is to add classes to the existing parent classes. A slight change in the contest makes it easier. Just set up the draggable elements so that you can create a single Design Pattern of your choosing. By clicking the Play button below, you will see a finished example that does exactly that:
As you can see in Figure 1, by dragging the different pieces you can create a Class Diagram of a design pattern.

Figure 1: Class diagram dragged into place
The little gray splotches are drag handles I added. Also, the fat lines are for the same reason—they’re easier to drag. Grab anything with an arrow by the arrowhead, and it’s easy to drag. Here are some tips:
1. Make a lot of little classes. Two each for every element you create. One will be an extension of the Creator and the other of the Product. (You may work out another way, and that’s fine as long as you use the Creator and Product classes.) Take a look at the original article for added help.
2. Use input text fields so that you can flexibly add the necessary labels as you can see in the example (click the Play button to see them). Whatever way you use the text fields, it helps to add some kind of handle.
3. Organize from your Client carefully. You can end up with a very long script in the Client class.
4. Have fun! Winning entries and honorable mentions add points to the Golden Lunch Bucket World Cup!
The contest will run until October 20, 2009. Send in Entries to wdsanders@comcast.net in a .zip file. (My Mac balks at other archive files.)

The Golden Lunch Bucket Contest #5 Update-Example by William B. Sanders, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.
Related posts:

Bill Sanders
0 Response to “Golden Lunch Bucket Contest #5 Update-Example”