Blog

Longer-form writing: notes on programming vintage hardware, things I have repaired, and the occasional opinion about modern software.

Hardware Sprites on the ZX Spectrum Next in C

Drawing sprites on the Spectrum Next, using C. Or – how to learn the dark art of figuring out things you don’t understand. <!-more–>

Learning to program is an endurance game full of random side quests, dead ends and frustration. Rather than learning “how to do X”, which is specific, it’s much more useful learning “how to figure out how to do anything at all”.

Go look on StackOverflow at all the questions that come down to “I don’t understand what I’m trying to do in the first place, can you write my code for me?”. Here’s how to not be one of those people.

Python Commandline Argument Parsing

A quick set of notes on how to parse command line arguments properly in Python. This uses the argparse module, totally removing any effort on your part when it comes to processing command line switches.