Microposts
2025-05-07
#microposts
u kno ur getting old when u get excited seeing condiments packaged with a “free gift” at the grocery store…
2025-05-02
#microposts
TIL you can check if a reference is the same with sets in JS
const a = {v: 2};
const b = {v: 2};
const s = new Set();
s.add(a);
s.has(a); // true
s.has(b); // false 2025-05-01
#microposts
Idk what genre it is but “ninja hip-hop” is my new favorite vibe
2025-04-24
#microposts
TIL if you do this:
const arrs = new Array(3).fill([]);
arrs[0].push("some val");
arrs[1]; // ["some val"]
They’re all references to the same array… like, why would you ever want that? JS is dumb
So you have to do smth like this instead:
new Array(3).fill(null).map(() => []);
// or this
Array.from({ length: 3 }, () => []); 2025-04-18
#microposts
Spotify recommended me a “dad rock” playlist. I was curious, so I clicked in. Apparently, Evanescence is “dad rock” now.
Man I’m old