Search

Post types:
Categories:
πŸ”–

TypeScript string literal arrays

Read Note

A useful trick when working with tokenised values is that you can generate an "immutable tuple" within a "const context" (computer science gibberish overload πŸ˜‚) and reference that. So if you have …

Published:
Categories:
  • JavaScript
Tags:
πŸ“–

Monthly Media: Coming Soon

Read Article

Last month I wrote up a post detailing the films I'd seen in March. When I initially started blogging again last year I had hoped that mini-reviews and similar content would become a mainstay, …

πŸ“–

Rating my Opinion [#3]

Read Article

How do you determine quantitative worth for a de facto subjective experience? Is there even any point? Can you make related "values" actually relatable if those "values" are arguably …

πŸ“–

Code Block Styling in Microsoft Word

Read Article

Lots of companies rely on Microsoft Word for internal documentation and training, but code snippets are a readability nightmare. They don't have to be; with some reusable formatting, we can make clear code blocks in any version of Word.

πŸ“–

Month in Media - June 2017 [#28]

Read Article

Month in media is an archived project, now with a permanent home in the Reviews section. Films, TV shows, books, video games, and other media watched, read, or played in June 2017.

πŸ“–

The Poetry of Spam [#30]

Read Article

I get a fair amount of spam posted to theAdhocracy. For the most part, it's easy to spot and formulaic (though admittedly increasingly intelligent). Spam comments either thank me for helping solve a …

πŸ“–

Grid Lock

Read Article

An attempted experiment to replicate the blog layout of ilovetypography.com, which uses floats to great effect, with more modern CSS Grid and Flex techniques. Turned out to not be quite so simple, but taught me a lot about the benefits and limitations of CSS Grid.

πŸ“–

Crafty Asset Management

Read Article

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.

πŸ“–

Pass API Data to the Stylesheet with CSS Variables

Read Article

I keep running into the same problem: how to set a style attribute in the CMS and have that be dynamically rendered on the front-end, without relying on inline styles. Turns out it's a great use case for CSS variables!

πŸ“–

New Content Disabled by Default on Craft CMS

Read Article

I frequently save a draft post in Craft only to realise it's set as live. Luckily, for me that doesn't massively matter as it's all API driven, but still it's nice to be able to change the default.

πŸ“–

Classy Microformats

Read Article

In which I begin by questioning why microformats are defined on the class attribute, instead of somewhere more bespoke, and end up concluding that I don't understand what microformats are actually for... and I'm not sure anyone else does, either.

πŸ“–

Adding Search with Algolia (Gatsby, Craft CMS - Part 1)

Read Article

Static sites don't make search functionality easy, but luckily there are some excellent services that do. I've been messing around with Algolia and finally have it working with Craft and Gatsby the way I want it... on the backend, at least.

πŸ“–

React Summit 2020 Notes

Read Article

Notes from the fully remote React Summit 2020 (or at least the talks I tuned in for). Lots covered, from static-site generators and the Jamstack through to React state management and accessibility. What a fun day!

πŸ“–

Self Categorisation

Read Article

In which I start off asking a simple question: what content categories should I use on this website? Four hours later, I've discoverd information gardening, now pages, digital-me libraries, and oh so much more. And yes, I think I've answered that first question. Fancy a trip down the rabbit hole?

πŸ“–

Adding Search: Refining The Frontend (Algolia, Gatsby, Craft CMS - Part 3)

Read Article

The search page is live, the index is populated, but it all looked a bit rubbish and it didn't quite work as well as I wanted. Now it's using custom-styled components, queries are tracked/stored via the URL for persistence, and you can filter results based on category.

πŸ”–

Intro to JavaScript promises

Read Note

An overview of JS promises for all skill levels. Starts with an excellent analogy of thread-blocking as …