Archive for the 'Code' Category

CommonJS modules with live edit in devtools

As you might know, I’m a big fan of Chrome devtools’ live edit and workspaces (video playlist), and it’s this workflow that’s kept me away from Browserify. So I went about creating an experiment that allowed me to use CommonJS modules in development and that allowed me to edit and save directly in devtools without [...]

Where is that console.log?

Did you ever have phantom console.log – or more specifically you’ve no idea where it was happening? I have. This tiny bit of code will help you identify where the logging is being called from. The nice thing is it works in the browser and in node.

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).

Using watches in my devtools workflow

I’ve recently found that I’m able to optimise my workflow inside of devtools using “Watch Expressions” which I’ve found (for me) is often left untouched.

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.

My terminal setup

In my workflow v3 screencast last week I gave a flash of my terminal, and (as I did when I saw it first), many people asked me about my set up. TL;DR: it’s zsh with a customised version of agnoster running with iTerm 2.

Configuring wifi for your Raspberry Pi using your Mac

This walkthrough assumes a pretty simple set up – and in my case I just grabbed a “latest wheezy SD card” off Amazon. I booted once with an ethernet connection so I could do the initial Raspi-config steps. Caveat: backup your files! Next I powered down, plugged in the wifi usb dongle – but then [...]