Port 35729 is already in use by another process

I’ve run into this error a couple of times recently when using the Yeoman webapp generator with Livereload. After trying changing the port used by the Livereload server in the Gruntfile and still seeing the error, running this command in the terminal…

lsof | grep 35729

…confirmed that Sublime Text was the port hogging culprit. Specifically the Livereload Sublime plugin. Disabling this plugin resolved the conflict.

Backbone Views Scoped Queries

Like Dave Brailsford, I’m a fan of marginal gains and love discovering small tips and tricks to optimise my development workflow. So in the spirit of marginal gains, here’s a tiny productivity tip for Backbone.js that I stumbled upon the the other day.

If you have jQuery included and need to target a child of your view’s el, instead of this…


You can just write…


BOOM. milliseconds of typing time saved.

Every Backbone view has a $ function that runs scoped queries within the view’s el. Probably obvious to most as it’s right there in the docs, but I only just noticed it so am recording it here as an aide memoir.