Code Comments

Frameworks That Make Hard Work

Over the last few weeks I’ve been checking out various JavaScript frameworks for use in a site I’m building at work. There are a number of frameworks out there, from Prototype, which I previously used to do some AJAX stuff on WipEoutZone, to JQuery, the wonderfully named MooTools, and Yahoo!’s own Yahoo! User Interface Library.

Most of them aim to provide shorthand ways of accessing DOM elements and handy methods that take the pain out of getting a JavaScript app up and running. Well, that’s the plan, anyway. Some do certain things better than others – MooTools is tops for fancy effects, while Prototype is good for grunt work. YUI seems a bit limited in its scope, although the documentation is pretty good and has a good number of working examples. JQuery looks to offer a more compact way of getting results that take more work with Prototype, although it’s the one I’ve looked at the least.

Despite the fact I’ve used it before and gotten some simple things working with it pretty swiftly, Prototype has excruciatingly sparse documentation, which makes getting a working example of almost anything a pain in the ass. Even worse is that the online documentation isn’t searchable – seriously, what the hell use is online documentation that isn’t searchable? Even if you do find what you’re looking for there is rarely any sample code to give you something to go on, so attempting most things is a bit of a shot in the dark.

It looks like I’m going to have to take a good look at JQuery when the dust settles with what I’m doing right now. The funny thing is that in the end it probably wont come down to me choosing the “best” framework (heck, maybe they’re all the same under the hood) – it’ll come down to using which one has the best documentation.

Continue Reading
Game On, Linkage

Gimme Friction Baby

Here’s a natty little flash game I’ve been playing by the name of Gimme Friction Baby.

You fire the balls and once they come to rest they expand to fill the space around them. Then you use subsequent balls to try and hit the previous balls three times – at wich point they break apart and vacate the space they occupied. What makes it difficult is aiming the gun – it constantly sweeps back and forth by itself, so it’s easy to misjudge the most trivial of shots.

Still, it’s fun in a mininmalist kind of way, and the ambient music is cool, too. 🙂

Continue Reading
Journal

Stroke Fodder

I was quite alarmed to receive a text message on Friday night, whilst I was out on Dave’s stag do, that said Cousin Iain was in hospital after suffering a suspected stroke.

I know you don’t have to be old and busted to have a stroke, but Cousin Iain was only 30 in January and is in fairly good shape (round is a shape!), so I immediately called Fliss to get more details. Fliss only knew what she’d learned from my mum, which, being honest, is never really the best way to get a clear picture of events. Most of my mum’s stories are epics – epics directed by Michael Bay, at that.

Hence I decided to call Nicola (Cousin Iain’s hot chick!) as soon as I was clear of a pub and the rest of the mob. She explained what had happened and quelled my fears somewhat, as it turned out that he hadn’t quite suffered a stroke, but was experiencing some numbness of his left side that was cause enough for concern. There wasn’t much more to learn, other than that he was back in for tests in a couple of days and we’d find out more then.

It was quite a relief to know Iain wasn’t at death’s door, so I got on with the rest of the evening at the stag do without being too worried. Well, I was a little concerned that he might not recover in time for the Great British Beer Festival in a couple of weeks, but it seemed silly to panic just yet. 😉

Anyhow, Nicola texted me today to let me know that they’d found out what was wrong with Iain and that he’d be taking a course of antibiotics through the week. That and he’d most likely be fixed by the time I travel down for the beer festival in a week. Good news all round – hopefully Iain will be fighting fit by the time I arrive. 🙂

Continue Reading