Martin Lefebvre's blog

Learning

Git Commit Messages -- Letting AI write the boring parts

We all know the ritual. You finish a batch of changes, run git add, type git commit, and then… you stare at the blank terminal. Fifty characters to summarise hours of work. Then a longer description that nobody will read. If you follow conventional commits, there’s the added overhead of picking the right type prefix: feat:, fix:, docs:, refactor:, etc. Let’s be honest. Most of the time I just write “fix stuff” and hit enter.

HTMX: Simple AJAX

We all remember AJAX (Asynchronous JavaScript and XML). I’ve spent many hours and many days creating XMLHttpRequest objects and using jQuery’s .get and .post methods to connect HTML to a PHP backend to achieve that true “no full page load” magic. That’s still possible today… It’s also even simpler with HTMX, a small library that makes HTML dynamic. At its most basic, HTMX queries endpoints and updates HTML elements with the returned content (usually text or HTML).