Freelance Software Developer / DevOps Consultant
Hi! I'm a freelance software developer from the Netherlands, specialised in .NET and Azure development
with C# and TypeScript. Additionally, in my 15+ years as a software professional I've worked with
a multitude of technologies, including Ruby on Rails, React, AWS, Kubernetes and various CI/CD pipelines.
I value pragmatism, developer productivity and clear communication. On this website I occasionally
write about stuff that interests me. If you're interested in my side projects check out
my GitHub profile.
I'm available for hybrid contract work in the Netherlands and remotely throughout the European
Union. If you're interested in cooperation, I'd love to hear from you!
Azure Functions is a serverless compute solution that integrates with a wide selection of cloud
services to allow developers to build isolated blocks of event-driven code in a cloud-native fashion.
This post demonstrates how an Azure Function written in TypeScript can interact with a database without
any actual database logic in the function itself, and how to write unit tests for these functions.
The DateOnly type that was introduced in .NET 6 is convenient for exchanging strongly typed date information
in APIs. Unfortunately, the ever popular JSON format has no standard for date fields. This leads to
UnsupportedTypeConverter errors when trying to serialize these fields using System.Text.Json. This article explains
how to create a custom JsonConverter to define the serialization format for DateOnly fields and how to show the
correct format in generated Swagger documentation.
Regular expressions are not a great way to validate URLs. Using Ruby’s built-in
URI parser, a custom Active Record Validation Helper can be built to safely
validate URLs in Ruby on Rails applications while allowing for flexible domain name
The new minimal APIs in .NET 6 make creating low-ceremony microservices and backends very appealing,
and they’re also a great way to add simple endpoints to Blazor Server applications, complete with
Dependency Injection and JSON serialization.
Blazor is so great that I’d rather not use anything else. That made me wonder:
can I build SVG files using Razor syntax and is that a good idea?
The answers are absolutely and definitely!
In sociology, the broken windows theory states that if a window in a building is broken and is left unrepaired, all the rest of the windows will
soon be broken. This equally applies to software developement is it’s importatnt to be aware of this and make fixing these broken windows a team priority!
Trix is a rich text editor that is popular with Ruby on Rails developers.
In this post we’re going to take Trix out of Rails and use it inside an
ASP.NET Blazor application by making a drop in replacement for Blazor’s
CircleCI provides several official orbs for interacting with Amazon Web Services,
but not for CloudFormation specifically. However, that doesn’t mean you need to
reach for a community orb to update your stacks from a CI pipeline. A single
AWS CLI command is all that is needed to push template updates to your AWS
Today marks the release of Xsv 1.0.0, a high performance, pure-Ruby gem to parse .xlsx (Excel) files
I always thought indentation was a solved problem, until I needed to adapt
to something different. Here’s a trick to force correct indentation for your
.NET projects by using the Omnisharp language server.
Years ago I replaced my IKEA TRÅDFRI gateway with a Rasbperry Pi with a Raspbee, running deCONZ. It allowed me to mix and match ZigBee devices from various brands and make flexible configurations. Plus the integration with Home Assistant is superb.
However, one thing I lost is the ability for the IKEA remote to control my lights directly when the deCONZ gateway is down, which was possible back when I used the IKEA gateway.
People have been sleeping on .NET and they’re mising out. With the release of .NET 5 this month, it’s time to consider C# .NET for your next project! It’s a great general-purpose software framework that’s likeable, in high demand, easy to sell to customers, has decent performance, is completely open source, mature and has a large backing. What more could you want? Let me explain to you why I see it as the best alternative for Ruby on Rails and share some resources to get you started.
Programming fonts are stuck in the past. Proportional typesetting is everywhere and
there is no reason why you can’t use it for code.
Cypress makes writing integration tests (or system tests) easier and more fun. This posts shows you the tools needed to add Cypress tests to your Rails application.
Docker image size matters. Here’s how you build a small image on top of debian:slim and why
that’s a better option than alpine or scratch.
Gitlab CI allows you to create and manage Kubernetes clusters directly from the interface and easily deploy builds to your existing Kubernets infrastructure. Here’s how.
Since the introduction of the Magic Keyboard, interest in using an iPad as a remote terminal for desktops is bigger than ever. The tool of choice for many iPad enthusiasts seems to be Jump Desktop, which supports VNC, RDP and their proprietary Fluid protocol. Let’s try to get the most out of it when connecting to a macOS desktop.
Prometheus Operator is the perfect cloud-native monitoring solution for Kubernetes. By deploying the Helm chart you get a preconfigured Prometheus and Grafana setup plus an array of CRDs to add monitoring your own services.
Not everything necessarily lives in a Kubernetes cluster, though. So how would you add external targets to a Prometheus Operator setup? One could define an Endpoint, Service and ServiceMonitor for the external resource to have it picked up by Prometheus' Kubernetes service discovery, which works, but there is a better solution that is more in line with how Prometheus is used outside of the Operator deployment.
TL;DR I wrote a super fast Excel file reader called Xsv, check it out! It’s fast and low on memory because it uses a SAX-based XML parser instead of a DOM-based one. Here’s some benchmarks to prove it.
Simple API for XML, or SAX for short is an event-based API, of which development started in December 1997 1. It is an alternative to the well-known Document Object Model, which was developed around the same time 2.
The topic of this post is neither new nor original, so I’m going to keep things short. People have been using jemalloc with MRI Ruby for years and praising it’s benefits all the while. The TL;DR here is: for Rails apps, using jemalloc will reduce memory consumption and might increase performance a little.
Why? To illustrate my own experience, here’s a Grafana graph showing the effect of switching to jemalloc on a production server running a few instances of a Rails application:
Another advantage Webpack brings is the excellent source maps. I was surprised to see the source code of my Svelte components, complete with comments available from the Firefox development tools:
For a long time I’ve been thinking about getting out of my comfort zone and try to develop a game for something like the Sega Mega Drive or maybe the Atari 2600. But for a spoiled high-level developer like me that would be quite a daunting task so I’ve postponed indefinitely.
Then last week, in the midst of the COVID-19 crisis, I stumbeld upon this awesome project called PICO-8. To quote the official website:
If your Wi-Fi network is on channel 12 or 13, change the regulatory domain of your
wireless networking driver to make the Raspberry PI 3B see it.