TAC new logotype - the rhino in running clothes
The Accidental Coder has undergone a lot of changes over the past year, not the least of which is an improved UX/CX.
Dec 31, 2020

A New Hope

2021 loading like an app
New Year's Eve. With this anno horribilis almost in the rearview mirror, my thoughts turn to 2021, and hope springs eternal.
Lotto card
One of the enhancements to TAC v3 is that the cards on the home page have randomly selected backgrounds. This tutorial shows how it's done.
Cartoon apostrophe in sunglasses and spy hat
It started with a simple plain text field and quickly became a mystery...how to force twig to unmask an apostrophe.
  • Drupal 9 D9
  • Drupal 8 D8
  • twig
  • Drupal Planet
Image of an idea lightbulb.

Tip Articles

Comment Counts in Twig - 2019 Aug 13
roundDown for php - 2014 Dec 9
On Being a Blockhead - 2010 Jul 8
No Soup for You! - 2010 Jun 18
Dec 31, 2020

Switch to Match

PHP 8 introduces the match expression, a different take on the switch statement.

Here's some of what I've been reading in tech: 

Pattern Lab - A framework for component-based web sites
The Python Mega Course - A complete Python 3 course.
The Complete Guide to an Effective Card-Style Interface Design - Introductory design tips for card layouts.
  • Image of an open book. ReadMe