RSSAmplifier

Blog

mattrighetti

Just another software engineering blog

mattrighetti.comRSS feed ↗10 posts

Latest posts

TTY and Buffering

Every developer has at least once in their career stumbled upon the scenario where a program would not print something as they initially thought. A few years ago, you would search for an answer on StackOverflow and find a page stating the dreaded

Too Many Open Files

Recently I ve been working on a pretty big rust project and to my surprise I couldn t get tests to work properly.

Authentication with Axum

Consider this scenario: you re building a website that has a classic navbar at the top, this navbar has a button that reflects the user authentication status, showing a "Profile" button if the user is authenticated and showing a "Login" button in case the user is unauthenticated.

Reverse Engineering Playtomic

Playtomic is probably the biggest application for booking tennis/padel courts in Europe. Every club that I go to is on Playtomic and that makes it very easy to book a court or look for upcoming matches. The app is great, which I guess is why it s so popular.

Database Tests for the Lazy

Anyone who has developed with Rust using sqlx for database operations has likely needed to write tests for their database interactions.

You Probably Don’t Need Query Builders

In a previous [0] post I ve discussed why I ditched sea-query and why sql is almost always the best way to not re-learn something new from the beginning that will inevitably end up slowing you down or simply not working at all in the long run.

Back to Good Old SQL

Query builders and ORMs have been around for as long as I can remember, each serving different purposes. ORMs, for example, allow you to focus on application logic without worrying about SQL or database intricacies. However, this convenience comes at a cost—using an ORM almost always means losing control over what’s happening in your database. That’s a trade-off I’ve never been willing to make in…

Why Askama?

Askama implements a template rendering engine based on Jinja. It generates Rust code from your templates at compile time based on a user-defined struct to hold the template s context.

Axum, Askama, HTMX

Lately I ve been working on Ulry, after tiressly trying to make Next.js work for me, I realised it wasn t the right fit (I m not alone). I decided to make a U-turn and go all in with Rust and SSR.

Files and the OS

The other day I working on a side project of mine and I stumbled upon a bug in my code that I couldn t immediately figure out how to solve.