#javascript
2026
2025
Comparing three type systems: Python, TypeScript, and Swift Jun 19, 2025
I recently ported Saga from Swift to both Python and TypeScript, giving me a direct comparison of three type systems.
Beyond htmx: building modern Django apps with Alpine AJAX Jun 11, 2025
Ditch the complex SPA. Learn how to build modern, server-rendered Django apps using Alpine AJAX and the power of hypermedia.
Refactoring Svelte stores to $state runes Jan 18, 2025
One pattern that I love to use in my SvelteKit projects is returning writable stores from the layout’s load function. Can we migrate this to the new $state rune?
First thoughts on Svelte 5’s runes Jan 02, 2025
I’m migrating a big SvelteKit project to Svelte 5’s new runes syntax and I have to be honest: not a big fan of the increased number of lines, especially when it comes to the props.
2024
Svelte 5 sites don’t work as expected in Safari 12 and 13 Dec 03, 2024
Quite recently I upgraded a Svelte 4 project to Svelte 5, and soon afterwards I found some problems inside of Safari 12 and 13 that needed a tricky workaround.
Putting Svelte stores inside context for fun and profit Nov 12, 2024
Solving problems by putting writable reactive stores in Svelte’s context.
SvelteKit architecture tip: return a writable store from your load function Jul 20, 2024
How do you update content in real time when that content was fetched from the layout’s load function?
2023
2022
SvelteKit session refactor Aug 23, 2022
SvelteKit version 1.0.0-next.415 removed the session object and store. Refactoring my project wasn’t very straightforward, let’s go over the changes.
SvelteKit architecture - the solution Apr 22, 2022
Last August I wrote about trying to come up with the architecture for a SvelteKit app I was working on, and failing. I’m happy to say that I have found a solution for all my problems!
2021
Working around HttpOnly cookie problems in SvelteKit Dec 25, 2021
When HttpOnly cookies didn’t work as expected in my SvelteKit project I had to find a workaround.
Architecting a SvelteKit app - and failing Aug 15, 2021
Trying to architect a SvelteKit app so that it does as few requests as possible, from a central place, so that all subpages have access to the content.
Announcing tag-changelog: automate your changelog and GitHub releases Feb 20, 2021
I’ve released a GitHub Action that automatically generates a changelog when you push a tag.
2020
Connecting Stripe to Firestore via Cloud Functions and webhooks Jun 26, 2020
Since it was a bit of a puzzle to get it working, I am sharing my backend and frontend code.
Clean up Firestore and Storage when deleting a document Jun 14, 2020
When you delete a document in Firestore, its subcollections and their documents are not automatically recursively deleted. Here is a simple Cloud Function that takes care of it.
2016
2015
Researching front end tools, part 3: Angular & Webpack vs Browserify Jun 14, 2015
Angular with Webpack, and then the same setup with Browserify. Falling down that particular rabbit hole made me appreciate Webpack’s horrible config a whole lot more.
Researching front end tools, part 2: Deku, page.js and cssnext May 31, 2015
I liked React but wanted something smaller, so in part 2 I’m trying out Deku: pretty much the same, but 31 KB instead of 141. Plus page.js and cssnext.
Researching front end tools, part 1: Ampersand.js, React, Webpack, PostCSS and ESLint May 17, 2015
If I had to start a brand new webapp today, what would I use? In part 1 of my research I’m looking at Ampersand.js, React, Webpack, PostCSS and ESLint.