Archive for the "javascript" Tag

Feature based development

Recently we changed the way we were working on JS Bin. Instead of pushing new features whenever it took my fancy – which could result in success or equally some kind of breakage – we’re now pushing new features under feature flags and it’s proving to be really quite powerful (and fun).

nodemon 1.0

For the past few months I’ve been working on a re-factor of nodemon. The two main drivers were to make the code base easier to maintain and to make nodemon more extendible. Nodemon is a command line utility to detect file changes and restart your application. Typically node apps, but it can restart any kind [...]

How I fixed an anonymous infinite loop in jsbin

If you’re a frequent user of jsbin, you might have noticed that on the odd occasion that it was unreachable. I’ve got alarms in place that notify me of problems, but the root cause was unknown to me. The result looked like an infinite loop, but how to find that code was a mission.

tracegl for JavaScript debugging

In preparing for my new Node workshop (tickets go on sale Wednesday 10am – set alarm!) my tool of choice used to be node-inspector but development has gone idle (for a year to date) and it’s showing it’s age. However, recently I came across tracegl I was intrigued as it looked to add to my [...]

I know jQuery. Now what?

I gave this talk: I know jQuery. What now? at jQuery UK 2013 (video of the talk), but instead of my usual approach of post-it explosion on my desk, I wrote a post first, and created the slides from the post. So here is my (fairly unedited) quasi-ramble on how I used jQuery, and how [...]

Creating popups without HTML files

I’ll start this post by saying: I very very rarely ever need a popup window, and in fact usually just include an inline overlay. But sometimes the situation comes up when I need a popup – this was one of those times. One thing that always bugged me about dynamic popup windows when compared to [...]

CORS isn’t just for XHR

Cross Origin Resource Sharing (CORS) is what allows XHR (i.e. Ajax) requests to go cross domain. It’s a simple header response to the XHR request that says “yes, you can complete your request”, looking like this (if we allowed any client to place an XHR request against our service): Access-Control-Allow-Origin: * Should you be adding [...]