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

💻 Typescript, React, NextJS
⛰️ Climbing, Running, Hiking
For a percentage of your profits I will harshly mock all your ideas and any progress you make
February 20, 2025 at 7:27 AM
Oh man, I've been using this and wondering why the creator sold out with banner ads that completely break the functionality of the page. Gotta remember which link to click next time.
February 18, 2025 at 6:44 PM
I guess ES2025 didn't manage to incorporate algebraic effects after all...
February 18, 2025 at 6:40 PM
Watch your thoughts for they become words etc.
January 26, 2025 at 7:54 PM
Can everyone just agree to click “not accept” on cookie consent from now on please.
January 23, 2025 at 5:36 PM
And why not have “.” which is randomly prefixed on the cookie domain (only sometimes though). It has no effect on the handling of domain itself, but we should duplicate the cookie key (and let it have different values) just to be sure.
January 23, 2025 at 5:33 PM
Want to access a cookie set in middleware in a server component in the same request? Guess you’re going to have to redirect (oh hi I’m the browser I assume you wanted that 307 cached so your users could enjoy a nice infinite loop)
January 23, 2025 at 5:29 PM
Got spaces in that string? Let’s have PHP encode those as + so that JavaScript can’t decode them
January 23, 2025 at 5:27 PM
Need to sign that hmac cookie? Sorry, NextJS middleware doesn’t support crypto
January 23, 2025 at 5:26 PM
I used to copy-paste from those comments more often than stack overflow
January 14, 2025 at 10:08 AM
I think this is a really neat and clean syntax, I’ve not written tests in storybook yet but this makes me interested to try
January 12, 2025 at 4:11 PM
While you’re at it, let’s switch to noun-adjective order for easier conceptualisation too.

“Dog big black hairy”
Vs
“Big black hairy…”
January 12, 2025 at 9:30 AM
I really appreciate you sharing this, it filled in a few more gaps in my understanding, thanks
January 12, 2025 at 8:15 AM
If you ever get back to it, figuring out webpack config is one area where chatGPT excels.

The crux is just defining a loader for each file type you plan to support, which is pretty standard across codebases.
January 11, 2025 at 5:34 PM
I would love to be in this starter pack please! I’m mostly talking about transforming frontend performance in e-commerce.
January 11, 2025 at 10:10 AM
What about uploading files via ftp and sharing code via email? 😂
January 1, 2025 at 10:48 PM
Honestly even when I find a good use for do-while I normally refactor to just while (with an air of slight disappointment) to keep life simple for the next person to come across the code.
December 31, 2024 at 5:11 PM
AI uses certain words more often than humans (see “delve”) and they have become unconscious markers for us when reading texts.

So if you are using AI to diversify your language, the content definitely does risk coming across as generated unfortunately.
December 29, 2024 at 9:43 AM
Huh, I honestly hadn’t noticed that… every game I wanted to play has been available so far. But you’re right.
December 29, 2024 at 8:36 AM
You do you! This was a post about how I am having fun with cloud gaming, not telling anyone else how to do things.
December 29, 2024 at 8:31 AM