Klaas
klaasnotfound.com
Klaas
@klaasnotfound.com
Started a fun #gamedev side project: I'm making a web-based version of #sokoban with #svelte, #typescript and #css. Got basic graphics, animations and controls working and just finished the improved version of a solver. It currently solves 90% of the 154 Microban levels in under 10 secs. #wip
July 16, 2025 at 4:20 PM
Today's #javascript learning: Do NOT use Array.fill() with non-primitive types like arrays or objects. They are created only once and will be shared between the array entries.

This can be hard to spot, because the empty arrays will look the same (i.e. `[ [], [] ]` will look like `[ [], [] ]`).
July 12, 2025 at 10:03 PM
#svelte learning of the day: When you pass $state with `setContext`, do NOT destructure that state in the child component or you won't receive updates.

Obvious once you know it, but it still had me confused for a sec...
July 7, 2025 at 10:45 AM
#svelte learning of the day: When you pass $state with `setContext`, do NOT destructure that state in the child component or you won't receive updates.

Obvious once you know it, but it still had me confused for a sec...
July 7, 2025 at 10:44 AM