Notes

Short notes about anything that catches my attention. Also a place to save stuff I keep forgetting over and over.

10/13/2025

14:28

Nietzschepicking: not just asking what the code does, but why it exists at all.

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

When a conflict happens when rebasing a branch A on top of a branch B, what’s “mine” and what is “theirs”? VS Code uses “current change” (which would b B’s) and “incoming change” (A’s), including the commit message, which is super clear. In other tools:

  • B = “ours” or “mine” (current change)
  • A = “theirs” (incoming change)

That’s because we checkout B and then place each commit of A on top of it.

07/22/2025

09:25

Amo as conversas aleatórias que rolam nas dailies. Ontem foi: os chineses associam vermelho a coisas boas. Ou seja, aquele papo de que vermelho em UX sempre indica danger não é universal; é só eurocêntrica mesmo. Meu chefe disse que isso deve ter a ver com as placas de STOP, mas ele sempre acha que as coisas foram exportadas pelos EUA.

Por associação, também pode-se questionar que o verde sempre represente sucesso. Inclusive, comentaram na daily que as cores mais comumente confundidas por pessas daltônicas são justamente o vermelho e o verde.

Verdades absolutas: ou não existem ou são muito mais raras do que supomos.

03/25/2025

16:27

Port mapping on Docker is host_port:container_port, not the other way around.

03/05/2025

16:33

If you want to represent an empty object, use Record<string, never>.

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/13/2025

10:05

Once you understand it, TanStack Query becomes a really nice tool.

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.

This is a hand-crafted, a little weird personal website. Create one of your own!