Short notes about anything that catches my attention. Also a place to save stuff I keep forgetting over and over.
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.
01/31/2025
17:43
In Jest, the difference between toEqual and toMatchObject is that toEqual checks for total equality, while toMatchObject checks for a partial match. This post is a good ref.
05/17/2012
09:58
De tanta gente confundir quando estou falando sério com quando estou brincando, farei uma placa com dois lados: VERDADE e IRONIA. Quando estiver falando sério, usarei IRONIA; quando estiver brincando, usarei VERDADE.
This is a hand-crafted, a little weird personal website. Create one of your own!