October 8, 2023
I've always been extremely pedantic about checking that things exist before trying to use them. Recently, thanks in part to some new features available in PHP 8+, I've learned that it's possible to write much more concise code that's equally robust.
June 15, 2023

Drupal's default RSS feed is bizarrely difficult to tame. There are a few issues with it, but the biggest one is the fact that each item's description has a link to the author's user profile appended to it in such a way that it can't be removed by any normal means—since user profile pages are not public for the vast majority of Drupal sites I build, this means there's effectively a link to a 403 error page in each RSS item.

June 3, 2023

Drupal's core “Manage display” functionality provides the option to link images to content, which is handy for, e.g., teasers. If the link contains nothing but an image, however, some accessibility checkers will (rightly) flag these links because there's no textual information indicating where they're going. One solution is to add a title attribute to the link.