July 2007
2 posts
4 tags
A better Class.create
How can 7 lines of code generate a 38 line blog post?
I’ve been playing with Custom Events (really cheesy demo), but the problem with prototype’s way of declaring classes is it’s, well, messy.
Something = Class.create();
Object.extend(Something, {
initialize: function() { ... }
}
Which doesn’t seem so bad, but what if you want to “mixin”, or do...
4 tags
444 days later.
Has it really been this long?
I left New Zealand to go on a grand adventure 444 days ago today. In that time I’ve lived in Canada, and the UK, and visited the US, Greece, and France. I think it’s going reasonably well so far, which is probably a good thing as I couldn’t afford to go home just now.
I can’t help but draw comparisons between London and Vancouver. In a way...