Tests and code coverage in Python

Not only is Python a nice language but it has always had a lot of tooling around it. I've always taken advantage of Python's tooling around testing (okay, not always ...) and recently I began to pay attention to code coverage again. Python makes it all so simple and delicious. I have used nose in …

Advertisements

The wonder of c++ static analysis

I was working on some C++ code, much like the one in this screen shot, when once again my IDE told me about some issue it had found with the code. The messages appear milli-seconds after I type some code in convenient tooltips placed in context.  The messages are succinct, precise and usually contain enough information …

Receipts for votes, receipts as lottery tickets

I watched while the bulky machine swallowed my two oversized pages. My offspring had described my activity as "Daddy is drawing circles". It looked like one of those older laser printers, but in reverse. I stared at it for a few seconds longer than necessary. I felt that I needed something to come out. An …

(Not) Dodging Greenspun’s tenth

I kind of dodged Greenspun's tenth law, but then I didn't: I think eventually the scripting language will be accidentally Turing complete in some weird domain, like where the space-time in the solar system is the tape with space ships writing on this tape.

Examples as documentation; documentation as specifications

Software with no documentation is like no software. If there is no description of how people can run your program, what kind of inputs and outputs it deals with and how you can interact with it most people will derive no benefit from your software. This goes both for "end user" programs as well as for …

Backing up Android photos

(I used to put things like this in my assorted-experience blog, but life's too short to have two blogs. Ok, three blogs. This will, most likely, not be of use to you.) My phone was complaining that it was running out of space. Somehow I had used up my 32 GB of memory. Anyone with …