Piotr Kowalski

@piecioshka
0 Followers
0 Following
4 Posts
Photography, Programming, Coffee, Ski jumping... but I like the most the first one!

console has profiling tools you probably ignore 🧰

⏱️ console.time / timeEnd for quick benchmarks
📊 console.table for arrays of objects
🧮 console.count to tally calls by label

Good enough before you reach for a profiler.

#Node #DX #Debugging

Deep work needs a runway, not just a slot 🛫

A 90-minute block with three Slack pings inside it is three 20-minute blocks.

Protect the block like a meeting with the most important person at the company — because for that 90 minutes, it's you 🫵

Object.freeze ≠ Object.seal ≠ Object.preventExtensions — three different "locks" 🔒

🧊 freeze: no add, no remove, no change
🦭 seal: no add, no remove, change OK
🚪 preventExtensions: no add, remove OK, change OK

All three are shallow — nested objects stay mutable.

🔗 Deep dive: https://github.com/piecioshka/test-freeze-vs-seal-vs-preventExtensions

Drinking coffee and creating something every now and again ☕