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 [...]
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 [...]
“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 [...]
Wednesday, April 27, 2011
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 [...]
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 [...]
Also filed in
|
|
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 [...]
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 [...]
Here are some cursory notes on a peculiar issue involving plummeting frame-rates when drawing input elements in DIVs that overlap canvas elements in fullscreen web apps. That’s the kind of market I’m targeting these days. tl:dr; Please test your canvas-capable device with this test case in normal and full screen modes, and report back the [...]
Update: problem solved(ish)! See below… Not again you Apple monsters! Last time it was multi touch that you decided to take from us, this time it’s geolocation. Upgrading my iPhone 3GS to iOS4.3 caused a mobile web app I’m working on to start throwing errors. Danged if I can figure out why. Here’s what I [...]