Thoughts From The Garden Shed

Using JavaScript Instead of Flash

HTML & CSS provides the bread and butter of a website, but when you want to add something cool you have two options, JavaScript or Flash. Whilst Flash is undoubtedly the most sophisticated option it requires a web browser plugin (which not all computers will have installed), and the development & support costs are much higher. This is mainly due to the developer requiring an expensive application to compile the Flash binaries (costing about £400).

By comparison the JavaScript language is free to develop and requires no compiling, allowing quick updates. It is also more widely available to users as a lot of office computers do not pre-install Flash for security reasons.

The advent of HTML5, a web standard which is still being finalised, is providing a number of advanced functions which is making in-roads into Flash’s functionality and makes the argument for Flash a weaker one.

Considering the lack of Flash support on the iPhone, poor support on other mobile devices, and the recent announcement from Adobe (the makers of Flash) that they will be suspending development of Flash, it seems an increasingly simple statement that the days of Flash are coming to an end.

However, Flash is well proven, relatively well supported on desktops and can handle complex graphic manipulation very well. If style is more important than function then Flash has to be taken as a serious contender. That is, unless JavaScript can be proven to do the job just as (or almost) as well.

To that aim I set myself the task of producing a simple arcade game using nothing but JavaScript. Doing so also made it very easy to feed top scores back to the server for long-term storage.

I think the results turned out rather well. The game is fun and includes effective sprite collision detection with some subtle features such as adjustable deflections.

Posted in Coding Articles

Custom WordPress Avatars

This article will detail how to add custom default avatars to your WordPress installation.

Many WordPress sites allow avatars in the comments section of pages and posts, but the default options are fairly limited.

Continue reading
Posted in Tips & Tricks

Double Chocolate Brownies

These are brownies for the real chocoholic. Dark chocolate brownies filled with white chocolate chips. The middle of the brownies are deliciously gooey, so eat them quickly before they melt in your hand.

Continue reading
Posted in Cakes & Goodies

Summer Harvest 2011

All in all it’s not been a good year in the garden. We lost our three hens to a fox in the Spring which had a big impact to our garden. The garden is a lot quieter now, and a lot less fun place to sit and relax.

On the veg front I moved my successful raspberries down to the allotment along with my blueberry bushes, and they haven’t appreciated the move. We will have to see if they get themselves established next year.

Continue reading

Posted in Veg Plot News

How Wide Should A Website Be?

The odd thing about the next big thing in web design is that us lesser mortals never see it coming until it hits us, but as soon as it does it makes perfect sense and we wonder why we didn’t think of it ourselves.

Well, I think for once I might be ahead of the curve on this one.

Continue reading
Posted in Coding Articles