2022 In Review
I left my country for the first time, bought a bunch of guitar gear, wrote Ruby and learned Italian. All of this, but with charts and pictures.
I left my country for the first time, bought a bunch of guitar gear, wrote Ruby and learned Italian. All of this, but with charts and pictures.
From resurrecting this blog to contributing to Ruby itself, 2021 was a year of challenges and surprises.
Today I discovered the void operator in JavaScript. It evaluates an expression but always returns undefined.
A small Rails addition that helps creating allow/block lists.
The key for better code is making it easy to delete.
No one likes huge Pull Requests. Reviewers have a hard time reading them, bugs sneak in, they took ages to get merged, conflicts pop everywhere… It’s a nightmare. There’s a better way to handle this.
Jekyll is a famous static site generator. It has over 43k stars on GitHub, but in our current JAMstack world, it’s not the shiniest star anymore.
Parsers, grepping, ASCII art, and how that helps you automating boring stuff.
Writing code is similar to writing an essay: it consists of many small parts that interact. One big giant blob of words is hard — and tedious — to read. To address this, we use paragraphs. The same technique can benefit our code. Here’s how.
Imagine you drink a glass of water and go to the kitchen sink to wash it. When you get there, there’s a HUGE pile of dirty dishes in the sink. To wash your glass, you would have to clean all the mess before. You look around… no one’s watching. You carefully put the glass in the sink’s corner and sneak out. You walk away thinking “How things got this way?”. The ironic answer comes to your mind: one glass a day.