Blog

37 articles since 2021 — TypeScript, AWS, and lessons learned building software products.

2026

2025

7 min read

Why and How to Use Snapshot Tests in AWS CDK

When I first encountered snapshot tests, I was skeptical. The concept seemed strange, and their benefits weren't immediately obvious. But after experiencing their value firsthand, I've become a convert – and here's why I think you should give them a ...

2024

5 min read

My 2023 in Retrospective (Personal Life)

I intended to write about my personal life and my professional live in this post. But I have decided to split it up. There is so much to write about both of those and most of you are probably not interested in my personal stuff. So this post is only ...

2023

5 min read

Podcast Notes: Happy Bootstrapping

💁 I will update this post if I have notes for new episodes. By Andreas Lehr (🇩🇪) who is the founder of We Manage and also runs a newsletter allesnurgecloud. My name is Andreas Lehr and in this podcast, I interview different entrepreneurs every ...

3 min read

How To Use Different Git Configs

A lot of us are coding for an employer and privately or as a freelancer for multiple companies. You might want to associate commits for the different projects with a different user (e.g. email) or sign them differently (I think you should). While you...

9 min read

Podcast Notes: Minimal Empires

💁 I will update this post if I have notes for new episodes. By Sumit Kumar who is the founder of Parqet and has previously worked at Stripe.

4 min read

Create Your Personal, Pay-Per-Use ChatGPT Client in Minutes

I was hesitant to purchase ChatGPT Pro. While I often use ChatGPT, the $20 per month price tag seemed excessive for my needs. However, the slow response time and limited availability were frustrating. I appreciate the serverless, pay-per-use approach...

5 min read

You Have Fucked Up! How to git revert?

You have messed up production. All hell broke loose. What to do now? Fix it as fast as possible and undo the last change that made everything fall apart to unblock further deployments. Fix Production Fast First of all, it is a good idea to get back t...

2022

7 min read

How to Securely Use Secrets in AWS Lambda?

It is quite common to need a secret value of some kind in a Lambda function. Either for a database connection, a 3-rd party service, or whatever else. But how to securely use secrets in your Lambda? In this post, I am going to tell you why environme...

10 min read

Mastering AWS CDK Aspects

CDK Aspects Introduction CDK Aspects are a powerful tool provided by the AWS Cloud Development Kit (CDK). They are utilizing the Visitor Pattern. By applying a CDK Aspect to a specific scope, you get access to every child node within it. You can insp...

3 min read

When to (Not) Use React Context API for State?

React's Context API is a popular choice for global state (my definition: state that is shared amongst components). It is easy to use and we are used to it because a lot of libraries leverage them. There are characteristics of React Context that you s...

8 min read

Creating Reusable React Components with TypeScript

Often we write React components that get bigger and bigger and at some point, we extract parts of it into separate components. Either because the component is getting too big or because we need parts of it somewhere else. This is generally a good app...

2021

5 min read

Web Authentication: Three Decisions You're Conflating

"Cookie-based vs. token-based" conflates three independent decisions: where state lives, where credentials are stored, and how they're transmitted. This article untangles them and covers the security tradeoffs of each.

9 min read

How to Run Lambda on a Schedule

Running arbitrary code on a schedule is a very common use case. A common way of doing that is by using cron jobs. But how would you do that in the cloud (specifically AWS) without having to run a Linux instance or something similar? What We Are Going...

8 min read

Benefits and Downsides of Using Statecharts

This post is part two of my series about state machines. It is a follow-up post of State Machines and Statecharts: What are they?. Start there if you'd like to learn about what (finite) state machines and statecharts are. After having answered the "...

11 min read

State Machines and Statecharts: What are they?

If you are working as a developer (software engineer, coding wizard, or whatever you want to call it), chances are high you came across the term state machine. But do you also know what they are? Can you explain them to others? What is a statechart? ...

10 min read

Introduction into Domain-Driven Design (DDD)

The concept of Domain-Driven Design (DDD) was introduced by Eric Evans. He wrote about it in his book Domain-driven Design back in 2004 (aka "The Big Blue Book"). ℹ️ What is a domain in the context of DDD? A sphere of knowledge, influence, or activ...

7 min read

AWS Cross-Account Access

I recently set up an AWS organization to follow the best practice to use a multi-account environment (read "Why should I set up a multi-account AWS environment?"). That was quite easy using Control Tower, which sets up an organization with some accou...

8 min read

Debunking Tailwind Counterarguments

Same Discussions Over and Over Again This post debunks some of the arguments against using tailwindcss. I've argued about them quite often in the past. Maybe you have, too? I'll plan to just reference this article from now on. This will make my (and ...

6 min read

React Pre-rendering and Potential Hydration Issue

Why I did my research I am not writing this article because the subject just came to me. It all started with an issue I had. While developing an eCommerce website for my little brother using Next.js this popped up in Google Chrome dev console: Warnin...

6 min read

Why Svelte is different - and awesome!

Just to get this out of the way in the beginning: This is not meant to be bashing other frameworks like React, Vue, or Angular. I used all of them and React (using NextJS) is mostly still my go-to. What is Svelte? Svelte is a radical new approach to...

6 min read

TypeScript decorators basics

⁉️ What are decorators? What types of decorators are there? ⁉️ How can they be used? ⁉️ When are they executed? Decorators Decorators are a stage 2 ECMAScript proposal ("draft"; purpose: "Precisely describe the syntax and semantics using formal spec ...