Opera Command, JavaScript based Missile Command game

Tags:

Firstly I’d just like to let you know that the lack of posts lately is because I have a new full time job which I’m enjoying quite much so far, but it still means I have less time / motivation to write stuff. The unit testing series and other postings will continue (see how I didn’t say “next week”, but “next time” in part 5? ;) ), but probably on a bit slower schedule.

As for packageizer and few other things not working, that’s because I’m setting them up on a new server. They should be up soon’ish.

Now for the actual post!

Today I’ll talk a bit about my other popular JavaScript widget game, Opera Command. As you may have guessed, it’s a clone of Missile Command and I originally wrote it to run as an Opera Widget.

I recently modified it to run in other browsers, so you can try it out even if you don’t have Opera. There may be some issues regarding the Z, X and C keys being taken by the browser for other purproses but other than that it should work quite fine.

Read More

Improving Ajax performance in Zend Framework applications

Tags:

A common reason to use Ajax in a website is to make it feel faster, so you usually want Ajax requests be processed as quickly as possible.

While there are many ways to speed up Zend Framework based applications, there are still some things like routing and dispatching which still add up to the total.

There is, however, another way to make Ajax work even faster

A french translation of this post by Antoine Delaisse is available at “Le blog du Zend Framework”

Read More

Creating a Dojo dijit.Tree with checkboxes

Tags:

Dojo provides a useful component called dijit.Tree, which is basically a quite typical tree component. However, it doesn’t do much out of the box, and I needed it to make some tree nodes selectable with checkboxes for my Zend Framework based packageizer script. While Zend Framework has a Zend_Dojo component, it doesn’t quite do trees the way I want yet.

Let’s see how I made the tree play nice with checkboxes and some ajax tricks.

Read More

Improved Zend Framework package maker

Tags:

Last month, I introduced the packageizer, which allowed you to choose a class from the Zend Framework and get it as a zip with its dependencies.

Now, based on some feedback from users, I’ve improved the user interface of the tool: You can now select multiple items for inclusion in the package, and I’ve made it possible to get the packages in .phar format. It also has initial support for different libraries, ie. Zend Framework 1.6 and Zend Framework SVN trunk, but currently only 1.6 stable is available.

Check out the improved packageizer! Let me know what you think.

I also used this chance to familiarize myself with Dojo. The improved packageizer uses Dojo’s Dijit widgets to provide a better way to choose classes and display their dependencies. Despite the fancy new dijit.Tree and all, it also works without JavaScript, in case someone needs that.