Collection

Javascript

January 28, 2014 · 5 min read

Cleaning up promises with yield

Previously we looked at cleaning up callback hell with thunks and generators, but in this post we'll look at the next approach to managing callbacks, Promises, and how we could clean that up with generators.

Read story
September 6, 2013 · 8 min read

LINQ in JavaScript, ES6 style

It's been a few years since I last blogged about the concept of LINQ in JavaScript as a lot has changed in the JavaScript landscape. So let's revisit the idea of it with a look at how you could leverage LINQ in JavaScript for ES6.

Read story
August 2, 2013 · 5 min read

AJAX without jQuery

When was the last time you wrote an AJAX request? When was the last time you did it without relying on jQuery? In this article we'll look at how do do just that, how do make an AJAX request without jQuery to better understand what's going on.

Read story
July 22, 2013 · 4 min read

Array-like objects

Just because it looks like a duck, walks like a duck, quacks like a duck doesn't mean it's a duck. There's dangers with making assumptions of your JavaScript objects based on their surface area. That said, a lot of power can be gleamed by these seemingly innocent assumptions.

Read story
July 10, 2013 · 6 min read

Implementing "indexers" in JavaScript

My colleague Luke Drumm challenged me to implement C# style indexers in JavaScript. So let's have a look at how you can do that, and how you can make some very interesting JavaScript objects that are self replicating. We'll build on the knowledge of using `bind` and `apply` from the last two posts.

Read story
July 4, 2013 · 4 min read

JavaScript call and apply

After having confused one of my colleagues with some code that used the JavaScript `apply` method and giving them an answer that didn't leave them completely bemused I thought I'd share my explanation with the world.

Read story
June 21, 2013 · 2 min read

Walking a JavaScript object

Ever had a path to a path to a property on a JavaScript object that you want to walk? Something along the lines of `foo.bar.baz`. Recently I was trying to solve this problem and came across a nifty little trick

Read story
February 16, 2012 · 4 min read

KendoUI Bootstrapper

For my Stats It project I’m using KendoUI as my UI widget layer (and charting) as it has several more UI widgets that I’m looking for than jQuery UI offers. But …

Read story
August 9, 2011 · 2 min read

JavaScript: A story

This is a bit of a joke that I wrote on our internal mailing list in which we were poking fun at different technologies and making up stories around them. I thought it was funny so …

Read story
July 10, 2011 · 1 min read

JavaScript Quiz

Today I released a little website, http://javascriptquiz.com, which was inspired by http://cssquiz.com. Basically it’s a site which I’ll put out JavaScript questions …

Read story
April 20, 2009 · 5 min read

LINQ in JavaScript

Let me start by saying that I am aware that there is a LINQ to JavaScript project on Codeplex but this was done by me are more of an achidemic exercise/ challange. So while …

Read story
January 31, 2009 · 2 min read

Custom eventing with jQuery

Last Thursday I attended a session through Victoria.NET on jQuery hosted by Damian Edwards. It was a good beginner session on jQuery, I was familiar with most of it but there were …

Read story
October 25, 2008 · 2 min read

When == isn't equal

Earlier this month I did a post about common mistakes made by developers new to JavaScript but there's a point I forgot to cover which I see a lot of. Nearly every language has a …

Read story