Newest blog posts

REST API versioning in Go

Published: Dec 23, 2024
BackendGo

When developing APIs that are used by external applications, e.g., from customers, it is always important to version them to create a stable system. You should not simply change the API, as this could lead to breaking changes in the client systems. Instead, create new versions and let the client update to the new version when they are ready. To create such a system, I tried out multiple architectures, and in this blog post, I want to show you the best practice that I could determine. In this blog post, I will write a REST server using the web framework Gin and add a versioning system to it.

Web error handling concept

Published: Dec 22, 2024
Software architectureWeb development

Today, I want to share an error-handling concept for web applications that I’ve developed based on my experience. In this blog post, I’ll provide code examples in Go and TypeScript, but the concept can be applied to any frontend-backend stack.

What is Basic Auth? With ExpressJS example

Published: Dec 22, 2024
BackendNodeJSWeb development

Sometimes you have to protect your website from unwanted access. There are many options you can choose from. One option is the so-called "basic auth," which uses the "Authorization" header in your HTTP request to verify whether you are allowed to fetch the resource or not. In this blog post, I want to show you what basic auth is, what the pros and cons of it are, and how you can implement it in your Express.js application.

Introduction to Astro

Published: Dec 22, 2024
FrontendNodeJSWeb development

If you're looking at frameworks for generating static websites, then you've probably come across the Astro framework. And if not, but you're interested in the topic, then I'd be happy to tell you a bit about this framework. Astro offers many different advantages. For example, it's possible to completely pre-render your websites so that you only have HTML and CSS. However, you also have the option to define certain blocks as client-side code, so that these are inserted as JavaScript. You can use your favorite framework, whether it's React, Vue, or Svelte. Static site generation results in extremely fast page loading times. The performance benefits are also advantageous for your search engine optimization. By the way, the page you are currently viewing was generated using Astro!