Misadventures in GameMaker Studio 2

Recently I’ve had a few ideas for games I would like to make, and with so many tools available to help you make games I wasn’t sure where the best place would be to begin. To help me decide I thought of a simple puzzle game I could create which would help me get an […]

Deserializing with GSON

For a project I’ve been working on I needed to deserialize a number of objects from JSON and because I’m lazy I wanted something that would let me do that easily. I came across GSON, and was very impressed with how easy it was to use. Here’s some of my JSON; { “intro”: “An introduction”, […]

Unit Testing with Python (Part 4) – File Operations

Previously (here, here and here) we looked at users.py and how we can create a set of tests using mocks to validate it’s working as intended. The subject we were mocking in those previous examples was file_utils.py. Here’s what file_utils.py looks like; This file contains bidirectional Unicode text that may be interpreted or compiled differently […]

Unit Testing with Python (Part 3) – More Mocking!

Before reading this post I’d recommend reading my previous ones available here and here. In the previous tutorial we used unittest.mock to mock out our test subject’s dependencies, this simplified our tests and allowed us to focus on one piece of functionality at a time. Unfortunately the approach detailed previously has a drawback! Let’s make […]

Unit Testing with Python (Part 1) – A Simple Test

This tutorial will be the first in a small series about writing unit tests in Python, the reason it’s being split is mostly because I am learning more about it as I write! The examples below are written to Python 2.7 though I will cover 3 in the future to highlight their differences. I will […]

Python JSON Tutorial

The JSON module is part of the Python standard library and provides an easy to use way of dealing with JSON data types. This tutorial servers as a basic introduction to this very useful module. Python to JSON table The first place to start is the Python to JSON table (defined in the documentation) which […]

The Sound of Alexa

A fortnight ago I was lucky enough to attend the amazing HackSheffield and I can honestly say it was fantastic! Everyone had brilliant ideas and watching the presentations at the end was great fun, so much creativity! Some of the apps that were developed made use of Alexa and the Echo which Amazon brought for […]