Mr Speaker

Yearly Archives: 2011

JavaScript has a lisp

It’s been a while since Slashdot was my regular hang out – so perhaps the demographic has swung radically – but I was amused (and a little bit incredulous) to see a stack of mis-informed javascript hate in the comments of an article talking about Harmony (TC39), the proposed next version of ECMAScript. In the […]

Conventional Interfaces: map/reduce and friends

I’ve had a few queries about some of the code in my Hacker News bookmarklet – which makes use of some JavaScipt 1.6 & 1.8 features: map; reduce; filter; and forEach (sorry, no love for some or every this post). Superficially these are just array methods that take a function and apply it to each […]

Mr Speaker as a test case

“Code so good, you’ll base your unit tests on it – that’s my promise to you!”. At least that’s how I’m going to look at it. I was hunting up some info on QtWebKit (the Qt port of WebKit, obviously) and I noticed a new version had just been released. To my surprise I noticed […]

Reducing map: jQuery vs jQuery vs JavaScript

The map/reduce (and their friends filter, each, flatten etc) paradigm provides a general way to manipulate lists and streams. This is particularly well suited to web work – where we spend most of our days playing with lists of DOM elements. Recent versions of JavaScript give us the tools to do this work natively but […]

My very own botnet

Yesterday had me basking in the internet glory of #1-on-Hacker-News. “This fame will last forever”, I pronounced confidently. Alas, like all fleeting glory – it was fleeting. Thankfully, I’ve come up with a plan to ensure perpetual future success: I turn my fleeting glory into my very own Hacker News botnet! All I’ve to do […]

HackemUp: A HackerNews bookmarklet

Hacker News is a fantastic source for up-to-the-minute happenings in the nerd world. It’s highly dynamic – like a calm river of nerditry, in which items of interest ebb and flow unceasingly over the front page. Unfortunately it is also addictive – and the highly procrastinative or inquisitive (or worse still, both) individual can become […]

Better Ads!

Big tech news everybody! I’m not sure if I have an exclusive here, but I just noticed this exciting announcement in Gmail this morning: That’s right! Better ads in Gmail! BETTER! Better than before! It seems hard to imagine that they could have squeezed a bit more awesome out of the advertising medium, but whatever […]

DOMTimeStamp fun

Here’s today’s fun-with-mobiles tidbit of pain. The extremely entertaining Geolocation API (entertaining to use, not to read) provides the current timestamp in DOMTimeStamp format along with geoposition responses. But it seems browsers and devices aren’t 100% in agreement on either what a DOMTimeStamp is, or what it is when it comes back from a geolocation […]