Switching to Mac after 20+ years of using Windows
Published on in Mac
I have used Windows PCs since I was a kid. A year ago (Jan 2022) I got my first MacBook. While Mac isn't perfect, it's so much better that I'm not going back to Windows.
I'm a web developer from Finland.
I write a blog and co-host a Finnish coding podcast.
Published on in Mac
I have used Windows PCs since I was a kid. A year ago (Jan 2022) I got my first MacBook. While Mac isn't perfect, it's so much better that I'm not going back to Windows.
Published on in JavaScript and TypeScript
A little helper function to retry a function automatically a limited number of times (or until success) and with a certain delay between retries. Useful e.g. when working with a flaky API.
Published on in JavaScript and React
If I'm already displaying data that I have successfully fetched with SWR, and then another fetch call fails (when revalidating the data), I don't want to replace the data view with an error view. Here's how to do that.
Published on in JavaScript and Regular expressions
Last updated on
E.g. how to capture overlapping pairs of letters from the string 'abcde'
,
i.e. 'ab'
, 'bc'
, 'cd'
and 'de'
.
Spoiler: with lookahead and lookbehind assertions.
Published on in CSS and CSS for JS Devs course
Last updated on
It's frustrating when a CSS declaration is technically valid (not crossed out in the browser's DevTools) but has no effect for some reason. Firefox DevTools can often tell you why and also how to potentially fix those issues! (Update: Chrome 108+ can too.)
Published on in JavaScript
Last updated on
That's because it would take a very long time, and at some point you would have so many combinations that they wouldn't fit in an array.
Table updated once a day.