Topic
Code
Programming, testing, and the open-source tools I build — PHP, JavaScript, TypeScript, and Rust.
-
fini, an interactive cli task manager
I’ve done it; as with every programmer into the depths of time… I’ve written yet another “to do list” program. Task managers or “to…
-
Elegant error handling in Rust
I’m slowly becoming more proficient working in the Rust language. I’ve now made my third tool, a command-line task manager called fini, and I’m…
-
Using PHP property hooks wisely
PHP 8.4 included a new feature for class definitions called “property hooks“. These are a way to dynamically control the behavior of property reading…
-
The making of phpcs-changed
Automattic developers have always held the WordPress PHP coding guidelines as the basic advice for writing WordPress.com code. However, when I started in 2013 most of the…
-
Refunding linked subscriptions
Today I wanted to write about another work project that’s taken up a lot of my time: how to properly refund subscriptions that were…
-
The Receipt Item Tag Trick
I’m not sure I should be proud of this solution, but I wanted to discuss a technique I invented to solve a tricky problem…
-
Commas and periods make cents
A long time ago (relatively speaking), all prices displayed to users on my company’s website were rendered from their numeric data (like 10.25) into…
-
Thirty days hath September
Here’s a riddle for you: what’s one month past January 31? Is it February 28, the end of the month? Or is it March…
-
Rust and Grepdef 3.0
As part of my summer vacation from work this year, I decided to learn Rust, a programming language that’s been gaining a lot of…
-
Record Objects to the Rescue
Very often, I need to return multiple values from a function in PHP. Maybe I need three different dates or an integer and a…









