How to let your iOS App crash and have a bad Christmas

Integer Overflow
Having a bug in your code is never fun, but having a bug in your iOS game or app is even worse. You can’t just quickly fix it and hope nobody noticed. Your game has to go through Apple’s review process again, which takes time. Having a bug in your game just a couple of days before Christmas, can spoil your Christmas joy instantly. Apple is having a week off, meaning your bug will be in there for at least 2 weeks. The following Integer Overflow made me be angry at myself (and at Apple a bit). Don’t let it ruin your life.

Read More

Can’t touch this!

cant-touch-this
Handling touch events in SpriteKit is not as trivial as one might expect. Especially when two or more nodes are on top of each other. Which node will receive the touch event? In this article I will explain how touch events are handled and that this can lead to unexpected behaviour.

Read More

Outline text in SpriteKit

OutlinedText
I don’t know why, but there is no easy way to outline text in SpriteKit. You should expect SKLabelNode to have properties like strokeColor and strokeWidth. But as of this writing you don’t have a lot of options to customize SKLabelNode. Eventually Apple’s Core Text API, SKShapeNode and a little bit of magic did the trick.

Read More

Testing Spatial Data with DbUnit

feyenoord-2
Working with geographic data and spatial databases is fun. With Hibernate Spatial it is also easy to create spatial queries that are standardized and database independent. But testing spatial queries with DbUnit does not work out of the box. In this article I will present a solution with just a simple hook in DbUnit.

Read More

Demystifying the complexity of Bitboards

TicTacToe-2
Ever since I built my own chess-engine and lost against the chess-engine of a colleague of mine who used bitboards I wanted to learn this bitboard stuff. Recently I saw the perfect opportunity to use bitboards myself. This blogpost will describe my experiences and hopefully will demystify the complexity of bitboards for you.

Read More

Assert Collections Fluently

comicbooks_umag_15copy-2
The one thing I love the most about Java is the variety of libraries and frameworks available. A couple of weeks ago I was writing a lot of code involving Collections and was irritated about the bloated unit tests associated with it. When I could not stand it anymore, I started googling and stumbled upon a nice little library called FEST assertions and it totally made my day.

Read More