Notes

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.

03/05/2025

16:33

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

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.

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