RSSAmplifier

Blog

Antonio Pitasi

anto.ptRSS feed ↗10 posts

Latest posts

Build your own ResponseWriter: safer HTTP in Go

Go's `http.ResponseWriter` writes directly to the socket, which can lead to subtle bugs like forgetting to set a status code or accidentally modifying headers too late. In this article I explain how to write your own defensive ResponseWriter.

Does ACPI dream of electric sheep, during S5?

What does State After G3 mean? Do I need to set it to S5 or S0 State? This article is a brief overview of ACPI global and sleep states.

CSS System colors

System colors are a way for the OS, the browser, or the users to provide some colors to your CSS. This is a great opportunity for accessibility, as the colors will also reflect users preferences on high contrast colors.

Year review: 2024

Another year gone by, this post is a bit of self reflection about the past 12 months.

Help your code reviewer

I've been reviewing PRs for years. Let me tell you what I want to see from a contributor.

Consistency as key to success

Consistency is achieved through conventions. Conventions are an investment that let's use save time by not having to take the same decision over and over again.

Learning programming with a turtle

A story of how I started programming back in elementary school (second grade), with a virtual turtle.

Rust Server Components

I didn't want to get lost in the maze of popular frameworks like Next.js, so I chose to do something crazy: I wrote my solution in Rust.

Astro: writing static websites like it’s 2023

“For fuck sake, another fucking JS framework??”. I can read your mind! Bear
with me though, I want to give a peek at what Astro has to offer and why Hugo
(or other static site generators) feels obsolete to me. 
 I really wanted to start writing again, I'm currently reading
 On Writing Well 
and it's inspiring. I truly believe that getting better at writing has a
positive…

The problem of SSR frameworks

(a rant about Next.js and Sveltekit) 
 Modern frontend development is basically about: 
 
 Making a good looking UI (i.e. writing css and other javascript tricks to do fancy animations) 
 Fetching data from some API (no matter if you use graphql or plain http requests, you still need to get some data asynchronously) 
 State management across the app (also including caching…