Plugin: See in REST API

I just set up the See in REST API repository on GitHub, a simple WordPress plugin that adds a new node to the WordPress admin bar, which links to the REST API representation of the current resource. This works both in the WordPress admin and on the front end (if you are logged in and […]

Stop and (Help) Fix It

A little over two years ago, I stumbled over a blog post that I resonated quite well with. It’s called Go see. Stop and fix it., and it’s by Leon Tranter, a certified Professional Scrum Master from Sydney, blogging about all things Agile. The blog post covers two concepts of Lean Software Development, which is […]

How to (Force) Update Your composer.lock

When using Composer, you might know that you should almost always include the composer.lock file in VCS. Now, the lock file includes a hash, which is generated from the contents of the composer.json file, and more. Therefore, changing something in this file, for example, the description, or something in the extra or config sections, will […]

Proper File Checking in PHP

TL;DR: if you want to read a file, use is_readable, not file_exists. Over the last year or so, I think I reviewed about a dozen PRs—both Human Made and external—with something like this PHP code snippet: While this code works like 99% of the time, it’s not really doing what people thought it did. What […]