Thumbnail
Setting up a new PHP project

Door: Thijs Zumbrink
10-03-2017 11:13

In this article I will walk through the steps I take when setting up a new PHP project. I will explain the reasoning for every choice I make. I hope this will give insight to experienced PHP developers that haven't started a new project from scratch in a while but have instead "grown" into a framework. Many of the things mentioned here are also recognizable in other languages.

Lees verder 2 reacties
Thumbnail
Coping with type invariance in PHP

Door: Thijs Zumbrink
23-02-2017 16:40

In this article I will discuss one of the problems you may run into when depending on PHP's relatively young type system. This problem is type invariance: the inability to change a method's signature when implementing an interface: it must exactly match including the type hints, which is too restrictive for optimal use. In the second half of the article, I give an example based on code in a real library.

Lees verder
Thumbnail
Smooth item placement in Unity

Door: Thijs Zumbrink
01-02-2017 17:31

For my latest game Build a Thing (link) I tried out multiple methods of item placement. After some experimentation I settled on the current solution, which feels really solid and intuitive. This post explains the implementation details.

Lees verder
Thumbnail
How to cope with static callbacks in GLUT

Door: Thijs Zumbrink
23-11-2016 14:47

While refactoring TaZCrash I took another look at GLUT window creation. Originally set up in one-window only mode, I had some trouble in converting this to clean OOP code. In particular, the library only accepts static callbacks with no way to identify the object you are using it for. After some trial and error I found a clean solution.

Lees verder 1 reactie
Thumbnail
Schalpoen code overhaul

Door: Thijs Zumbrink
25-10-2016 10:41

A few days ago Schalpoen became six! I decided to give some care to it again by bringing it into this decade. Not only did the layout change but also the internals.

Lees verder