Short notes about anything that catches my attention. Also a place to save stuff I keep forgetting over and over.
10/02/2025
09:45
Spent a whole day writing a redaction function because I thought no other package would have array support (e.g., a.b[].c). Today, totally by accident, I stumbled upon https://github.com/davidmarkclements/fast-redact. Face the truth: nowadays, it's very, very hard to be that special.
(At the end of the day, the package didn't work to me.)
09/24/2025
14:05
If I'm rebasing branch A on top of branch B and there's a conflict, what's "mine" and what is "theirs"? VS Code uses "current change" (which would b B's) and "incoming change" (which would be A's), including the commit message, which is wayyy clearer
In this case, B = ours, mine (current change) A = theirs (incoming change)
That's because we checkout B and then place each commit of A on top of it.
02/13/2025
18:23
Dear future me: next time you're tempted to use Mustache, use Handlebars. You'll do that switch anyway.
02/05/2025
15:08
Yesterday I realized that I don't care about any particular coding style anymore. I don't care if we're going to use tabs instead of spaces etc. What I do care is having a consistent, automatically applied coding style, so that it becomes a no-brainer.
If something is a problem, we should lint and forget it. If it's not a problem, we shouln't care.
02/04/2025
21:24
You can't rename a S3 bucket, but you can aws s3 sync s3://old-bucket s3://new-bucket and then delete the old bucket.
01/31/2025
17:47
Sometimes you're working on a particular test and don't want to run other specs. You run your tests adding a path pattern parameter, but you're not interested on the rest of the spec also. On these situations, I used to comment all other tests, but then I discovered the .only "modifier". You can append to describe and it to restrict what should be ran. You can even dismiss the path param.
This is a hand-crafted, a little weird personal website. Create one of your own!