Archive of JavaScript
Leaking Memory in Single Page Javascript Applications
Back in the bad old days, not so very long ago, lots of development teams had to support IE6. One of the major problems of writing large javascript applications in antediluvian versions of Internet Explorer was that memory would leak very easily, and you’d suddenly find that your initially snappy…
Read MoreFinTech New York Hackathon Round-Up
FinTech Round-Up After some much needed sleep we’re able to reflect on the inspired (and at times manic) hacking that took place this weekend in New York. Over 30 teams presented their demos competing for the grand prize of $10,000 from Novus. Hack Projects The various hacking projects can be…
Read MoreCallback hell is a design choice.
Repeated comments and blog posts about the “callback hell” problem in JavaScript on sites such as HN and Reddit have really baffled this JavaScript programmer. Callback hell is where you call an asynchronous function which provides the result of its computation via a callback function which is passed in as…
Read MoreQCon 2013 – Day two – end of day review
Day 1 ended… late. We finished at midnight after the Atlassian guys threw a party with free beer, foosball and a lot of socialising with fellow geeks. Even though it seems like the whole BBC dev team are here they are great guys and we shared a lot of ideas….
Read MoreSuperSelector – A JavaScript GUI tool to generate CSS selectors
Introduction SuperSelector is a lightweight JavaScript GUI tool to help you generate ‘smart’ CSS selectors by simply Ctrl + Clicking anywhere on a web page. What makes it cool? Easy to use – Ctrl + Click! Very accessible (available as a bookmarklet to add to your bookmark bar) Highly configurable…
Read MoreTesting by Contract in StreamLink JS
StreamLink for Browsers (SL4B) is the JavaScript library that we use to stream data from our server-side Liberator to our client side applications. It provides a simple API for client applications to interact with the financial (or other) data that they are interested in. StreamLink for Browsers is one of the…
Read MoreWebDriver, Chrome and Comet Servers
After spending about 3 hours of my day smashing my head against a really tricky little problem in WebDriver I thought I better just write a quick blog to try and warn other weary travellers. Symptom The WebDriver findElements() function was incredibly slow. Sometimes it wouldn’t return, and other times…
Read MoreEvent Hub – Pub/Sub in the browser
Today, I’d like to talk about EventHub, our in-browser publish/subscribe system. EventHub does a very similar thing to OpenAjax Hub, but for slightly different reasons. Whereas OpenAjax Hub is designed to allow mash-ups of co-operating components from different sites, EventHub is used to allow apps to be composed from a…
Read More