Chris Drifte
drifte.dev
Chris Drifte
@drifte.dev
Writing fast code. Living slow life.

💻 Typescript, React, NextJS
⛰️ Climbing, Running, Hiking
TIL you can pass extra parameters to setTimeout. I guess it’s slightly more memory efficient, slightly less readable than the usual arrow function approach.
December 16, 2024 at 11:07 PM
Snowy sunset
December 10, 2024 at 10:05 PM
Photo taken today from the summit of pedraforca, facing Montserrat in a sea of cloud. Within the next 48 hours this will all be covered in snow.
December 6, 2024 at 4:23 PM
Sunrise silhouettes
December 2, 2024 at 7:50 AM
My wife would certainly agree with those red flags

blueskyroast.com/roast/drifte...
December 1, 2024 at 1:21 PM
Sometimes I am delivering features. Sometimes I am coming down from the ridge line of l’Olla de Vallter. Balance in all things.
November 27, 2024 at 5:52 PM
Spending most of my waking life in front of a screen so I can spend the rest in places like this.
November 27, 2024 at 6:12 AM
Idea: request data in server components, but timeout after a short period, falling back to a client request.

- Initial load time is limited by the timeout
- If services load correctly, they display without javascript
- If services fail to load, they can be retried multiple times

Thoughts?
November 26, 2024 at 9:01 PM
Test your javascript knowledge with this fun puzzle, and then continue to please never use the &&= and ||= operators in production code.
November 25, 2024 at 9:33 PM
Fun fact: this town (pop. 14) has fibre internet and just two digital workers. How long before everyone else realises that WFH can look like this I wonder.
November 25, 2024 at 6:19 AM
Meanwhile the Duolingo mobile widget is openly threatening…
November 24, 2024 at 10:46 AM
A little trick I don't see often and would like to see more of: cleaning up multiple event listeners with AbortController
November 24, 2024 at 10:27 AM
November in the Spanish Pyrenees
November 23, 2024 at 6:50 PM