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”, […]

How should I unit test?

Ideally, you should be following TDD principles, if you’re not familar with them then I recommend watching the following video from Uncle Bob. TDD can provide instant feedback on whether or not the code you’re writing is doing the correct thing, which can be very useful particularly in complex applications that are hard to test […]

What should I unit test?

Knowing what to test is difficult, but the important question you should always ask yourself is; “Am I just writing this test to increase the code coverage?” If the answer is yes, then chances are that test isn’t adding any value. Let’s look at an example I like to use; Here we have a custom […]

Why write unit tests?

This post is the first in a series on the why, what and how of unit testing. It was originally going to be a single post but there was so much I wanted to cover it didn’t seem right to do it as a single post. For this post we’re going to look at why […]