A lot of discussion around object-oriented Javascript involves finding cunning methods to get a super reference. This is sometimes a reference to the super class, the super instance, or the super version of the current method. The latest installment in an Ajaxian posting this week on work by Erik Arvidsson. It makes for an interesting […]
Chasing super
December 4th, 2008 · 1 Comment
Tags: SoftwareDev
WordPress “Edit This” Links via Ajax
November 25th, 2008 · 1 Comment
Working on a WordPress customisation recently, I added an "Edit This" link which only logged-in people can see. To get caching right, the server always outputs the same thing - an invisible link - and only in the browser does the decision get made to show the link or not. This exemplifies the pattern I [...]
Tags: SoftwareDev
Guid0: A Javascript GUID Generator
November 13th, 2008 · 4 Comments
Guid0.js Guid0 is a GUID library for Javascript. Okay, it doesn't yet do official, bona fide, 128-bit, GUIDs yet, mainly for API design reasons. But this is a library you might find useful if you want to generate a unique ID in your Ajax app. Usage: PLAIN TEXTJAVASCRIPT: guid = new Guid(); guid.generate(); // Returns a unique ID, e.g. "dkvagrkx1rt" [...]
Tags: SoftwareDev
Offline Sound: No Flash, No File
October 21st, 2008 · 11 Comments
I just did some tinkering with offline sound and it turns out you can embed an audio clip in an HTML file, and play it without using Flash. I could have demo'd this in a raw HTML file, but it was just as easy to stick it in a Tiddlywiki file. So I made a [...]
Tags: SoftwareDev
For Browser Extensions, Grease is the Word
October 20th, 2008 · 5 Comments
Chrome now has Greasemonkey support. The Chromium patch came from Aaron Boodman, who is at once a Google employee and the brains behind the original Firefox Greasemonkey extension. It makes me wonder if this is the plan for Chrome add-ons. Forget about anything like Firefox's add-on mechanism and just rely on Greasemonkey. With the right APIs, [...]
Tags: SoftwareDev
Reflections from a TiddlyWiki Tiddler and Thoughts on a Guide for Web App Development with TiddlyWiki
September 21st, 2008 · 5 Comments
I've recently begun working on a project with Osmosoft, which I'll announce Real Soon Now, and have got my hands dirty with TiddlyWiki to the point where I'm now able to make at least some useful functionality. You effectively get an MVC framework for free with TiddlyWiki, so as a power developer, I can see [...]
Tags: SoftwareDev
Can’t really get excited about Ecmascript enhancements. Can’t really get disappointed about them either. When it comes to Ecmascript enhancements, I’m all “it doesn’t really affect me much”.
August 14th, 2008 · No Comments
There's some tweets and such like about Ecmascript Harmony today. I also saw a nice demo of Ecmascript 1.7 goods today. Really, I can't get excited about future versions of Ecmascript and can't get emotionally all in a tangle about the trials and tribulations of Ecmascript. I mean, Javascript is arguably the most popular language in [...]
Tags: SoftwareDev
Using 280Slides (Ajax slideshow maker): Real World Experiences
August 13th, 2008 · 2 Comments
I used 280slides.com for a quick presentation today at the London Javascript meetup. (The usual Jobsesque slides - usually one phrase plus an optional image.) The tool is very cool, as initial reviews suggested, but most of those folks had not used it in a real world situation. The tool has it's complications when you use [...]
Tags: SoftwareDev
Vim Macro for IDE-Like Behaviour
August 6th, 2008 · 2 Comments
I find Vim easiest for browsing source and as I explore TiddlyWiki, I decided to use some fairly recent Vim features - vertical splitting and the explorer window. Combined, these give you the feeling you're an 1988 edition of Eclipse. Just like a modern IDE, but navigation is ten times faster. Here's the macro - which [...]
Tags: SoftwareDev
Shout - First TiddlyWiki Plugin
August 5th, 2008 · 4 Comments
Okay, it's remarkably lame, but here's my first TiddlyWiki plugin. It defines a new shout macro - you include <<shout some-message>> in a tiddler and it includes A SHOUTING VERSION OF THE MESSAGE. I adapted it from the sparklines plugin. The important code is at the end - you create a macro by defining a value [...]
Tags: SoftwareDev
