Strictly Typed Object Keys in TypeScript
Read ArticleWant to type a data object so that a given key (e.g. "foo") can only be paired with a specific type (e.g. Bar)? Now you can!
theAdhocracy
Want to type a data object so that a given key (e.g. "foo") can only be paired with a specific type (e.g. Bar)? Now you can!
The Object.is() function is pretty much identical to the old "strict equality operator" (===), with two notable β¦
Last night was the extremely anticipated Coco and the Butterfields gig. Finally seeing them live did not disappoint. I'm always worried that bands I only know from recordings won't be great live, but β¦
I am a huge fan of the ever insightful talk show Last Week Tonight, hosted by John Oliver. I love the directness of the opinion pieces, agree with many of the stances taken and largely find the β¦
Migrating assets to a new CMS can be a complete pain, but working out which files go with each page or article on a website doesn't have to be a nightmare if you start with a solid foundation. For me, that means tightly coupling my folder structure on the server with my content structure on the website, a workflow that Craft is particularly nifty at automating.
A look back and a look forward... it must be the start of a new year. 2019 held a lot of change and personal improvement, but I can't help but feel that 2020 is going to be a big one. So what exactly do I have planned and what am I hoping for the next 12 months?
Well, it only took about a week of dazed puzzling, data tables, and tearing my hair out in clumps, but I think I may finally have a rough content taxonomy for theAdhocracy. A rough first version, that is. Let me explain...
Notes from my second fully remote conference, this time Sparkbox's UnConference. Being able to freely access talks from the US is a rare bonus of everything going on right now, and this did not disappoint. Musical cameos, great talks on UX, accessibility, design systems, and amazing speakers. Great event (despite the time difference).
I love books. I have a huge collection of them and I routinely add to it. But when it comes to the topic of spreading knowledge and information, I think the web wins. It may not be as nice to use, but it is more accessible, and that means it's more valuable.
... otherwise known as the Great Vulture Failure of 2020 β¦
What do you do when a website has loaded but the content is still being fetched from an API? One answer is to fill the page with animated placeholders, creating a skeleton of what the user can expect, with a dash of CSS animation to let them know that something's still going on behind the scenes.
Halloween: the greatest time of the year. A day (or, in our household, long weekend) dedicated to celebrating movies, board games, snacks, junk food, gourd art, alcohol, costumes, friends, and the β¦
A fascinating look at how modern front-end architecture and practices can help solve some of the communities issues; even the ones they initially created! Really neat to see how Brad has been using β¦
As far as years go, 2021 held some pretty big surprises and featured some fairly grown-up decisions. Life will never be the same again...
Like many other folk, I've been dipping my toes back into the Fediverse and checking out Mastodon. It isn't my first rodeo in this particular ring, but somehow it does feel a little different this β¦
A quick (and dirty) way to fetch local data from a JSON file and modify the look of a page in Astro, completely natively.
A useful piece of research diving into the continued fragmentation of viewport and screen sizes across the web. I was actually one of the data points, as I saw the original call to arms (a clever β¦
A look into my most recent productivity framework: every month set three, roughly prioritised focus areas. It's not novel, but it's been a slow-burn journey over the past twelve months or so and seems to be working well.
Specifically, the 6th (and 7th) of August, 2023; the day we tied the proverbial knot.
What are my goals, themes, and overarching desires for the year ahead; and how does 2023 compare to what I had hoped it would become.
Astro and Netlify largely play well together, but I've found a few aspects of redirects and URL design that contain the odd foot-gun I had to work around.