Hey, I'm Robbert 👋

I build things for the web. Currently exploring the intersection of TypeScript, cloud infrastructure, and game development. This is where I share what I learn along the way.

Latest Posts

A Clean Approach To Dynamic Component Variants

CMS sections with multiple layout variants and the if/else logic was getting ridiculous. A Higher Order Component picks the right variant based on a string - no more messy conditionals.

7 Aug 20253 min read

Adding basic auth to Api gateway using CDK and TypeScript.

AWS API Gateway doesn't have built-in basic auth. Here's how to hook up a Lambda authorizer to make it work without fighting the framework.

3 Jul 20213 min read

Building a Rules Engine with PHP.

Swampy if-else logic for discounts getting out of hand? A simple rules engine separates rules from the data being checked - way easier to add new conditions without touching existing code.

14 Mar 20214 min read

Implementing a simple AI for games in Godot.

Game enemies acting weird? Probably too many if-statements crammed together. Finite State Machines break behavior into clear states - now they actually know what they're doing.

10 Feb 20213 min read

Implementing fizz buzz with the chain of responsibility design pattern.

Solving fizz buzz without a mess of if-statements. The Chain of Responsibility pattern lets you chain handlers together so new ones slot in painlessly.

23 Jul 20205 min read

Generating XML files by using the strategy pattern.

Had to send different XML files to a remote server and ended up with copy-paste classes everywhere. The Strategy pattern lets you swap out the "how" without touching the "what".

9 Jul 20204 min read

Creating unique numbering sequences using a custom identifier strategy with Doctrine.

Standard auto-increment IDs won't cut it when you need unique numbers per customer. Here's how to roll your own sequence generator that plays nice with Doctrine and stays atomic.

21 Jun 20206 min read

Aggregating your data by with SQL views and Doctrine.

Slow aggregation queries killing your app? Use SQL views as read-only Doctrine entities - the database does the heavy lifting so your app doesn't have to.

16 May 20204 min read