The future of caching (and how to enable Sanity Live Content API with Next.js 15)
Caching is a necessary evil, but recent updates from Next.js and Sanity promise a smoother experience. Next.js shifts towards progressive complexity, while Sanity explores fresh approaches to content delivery.
Read more →
Avoid using barrel files with Typescript
This post explores the use of barrel files (index.ts) in TypeScript and React for re-exporting modules to keep imports clean. While commonly used in monorepos, I argue that they introduce unnecessary maintenance.
Read more →
Collector's Fallacy
The Collector's Fallacy is an informal cognitive bias. It describes our tendency to archive large amounts of information without integrating that knowledge into ourselves.
Read more →
Don't Destructure Your Props!
Stop destructuring your props in React!
Read more →
React Tip: Only hyphenate really long words
In this quick tip we will learn how to enable css hyphenation only for extra long words, in a sentence.
Read more →
Building a Garden Water Faucet
Our water supply for the garden is an old well located in the top corner of our property. The two first years we had to collect the water with buckets and carry it around to water our plants and trees. It builds character and strength. 😅 But in the end it was too much work. So for this garden season, one of our main projects was to install a pump and add some faucets at different locations in our garden.
Read more →
Apple WWDC Wish List 2024 🧞♂️ (Updated May 22nd 2024)
Bugs and features I'm hoping to see fixed and implemented for WWDC in June of 2024.
Read more →
Summary: Apple WWDC 2023 Wish List 🧞♂️
Every year, as many other in the Apple developer ecosystem, I maintain a list of bugs and features I'm missing from Apple's platforms. Here's what got fixed or added during Apple's WWDC on Monday June 5th.
Read more →
Apple MapKit JS: How to enable zoom on scroll?
Documenting the undocumented "scroll to zoom" feature flag in Apples MapKit JS framework.
Read more →
Try macOS Ventura on a virtualised machine using UTM
Previous years I've always installed the new iOS and macOS betas right away, on my main work computer. But it always results in a few months of bugs and pain. Decided to install it on a virtualised machine. Here's how to do it!
Read more →
Summary: Apple WWDC Wish List 2022 🧞♂️
Every year, as many other in the Apple developer ecosystem, I maintain a list of bugs and features I'm missing from Apple's platforms. Here's what got fixed or added during Apple's WWDC on Monday June 6th.
Read more →
Fetch runtime type-safe data from Sanity using io-ts
TypeScript is great. It reduces bugs related to mismatching types, it makes it easier to refactor our code, and helps us with nice auto completion. To name a few benefits. But as we know, since our browsers don't understand TypeScript, everything ultimately gets compiled down to JavaScript. This means during runtime, we loose all our type checking abilities. If we fetch som data from an api endpoint, we have to assume that the response is of the same shape as the types we modelled in TypeScript. Wouldn't it be nice if we could check the shape of the response data, and runtime validate that we get what we expect? This way we would be 100% sure that we only handle data with shapes we expect, in our application. `io-ts` will help us with this!
Read more →
Why and how to type HTML and CSS in React with TypeScript?
Why would we need to type HTML props and CSS properties, and how do we do it?
Read more →
2022 – New Year Resolutions 🎇
This year I've decided be a bit more systematic with my new year resolutions. In this post Im listing out some of them, and giving some reasoning behind them. Hopefully this public post will also act as an accountability.
Read more →
2021 – Past Year Review 🎆
Inspired by Tim Feriss' "Past Year Review" I'm trying to take a look back at 2021, to see what I did achieve and look for improvement opportunities.
Read more →
A side project to my side project: Collectibles.app
As too often happens, while working on my side project I had an idea for a new project, and started a side project to my side project. Collectibles: an iOS and macOS app to view NFT's across different blockchains. First version will support Etherium, Solana and Tezos.
Read more →
Wallpaper experiments
I've experimented with my brand colors and created some wallpapers.
Read more →
Weeks updated to version 3.0
A completely rewrite of Weeks, version 3.0 is out, with lot's of bug fixes and a new Big Sur style icon.
Read more →
Hello world
Welcome to my new website and my online notebook. What can you expect from this blog and what will I write about?
Read more →