Using code coverage to find bugs

Yesterday, I found two bugs whilst looking at a code coverage report.

I tend to think that shooting for 100% code coverage adds unnecessary overheard - often the last few percent doesn't give you much benefit, and takes a disproportionate amount of time to reach, but it's useful to ...

Turtles all the way down

One of the programming lessons I find myself re-learning again and again is this:

It's turtles all the way down1.

When I first started my current job, just after graduation, I was working in a frontend development rĂ´le. The app I was working on involved storing customer data ...

Installing PIL on 64-bit Ubuntu

I've just got a new laptop, and wanted to avoid messing around with symbolic links in order to install PIL1 in a virtual environment. I've just discovered patch2, and thought I should automate my process of installing PIL (a process which previously involved me making a ...

Bulk Upgrading Django Sites

A new version of Django was released a couple of days ago. I'm currently at 11 sites using Django, so upgrading them all manually (which I did last time) is a pain.

To help me out, I wrote a tiny Fabric script to spin through my sites, check if ...

Using a local cache for pip packages

I do a lot of development without an internet connection1, so being able to install packages into a virtual environment without a connection to PyPI is pretty useful.

I've got a couple of aliases in my .bashrc which help with this2:

alias pipcache='pip install --download ${HOME ...
Page 1 / 4 »

About me

Me!

I'm a software engineer working in London. At work I use C++ and Python; hobby projects are in Django. Read more about me.

Follow me on Twitter and fork me on GitHub!