Skip to content

Blog

Page 3 of 76 - keep going...

How to keep your tests off the real filesystem

Tests that read or write files can be really annoying. I’ll admit it, in the past I’ve skipped a few. I just hate having to think about seeding the files, cleaning them up after, and don’t get me started on the pollution left over when a test crashes before it can tear down.

Jul 23, 2026 2 min read #laravel #testing

Laravel has a tool for that grammar rule

Our apps do a lot of writing. Emails, notifications, invoices, dashboards. All of that copy has to follow the same style guide as anything else we publish.

Say your style guide follows AP style, which spells out the numbers zero through nine and uses digits for 10 and up. It is a simple enough rule that most of us just write our own tedious conditional for it, never thinking to check if the framework already handles it.

Jul 14, 2026 1 min read #laravel

Why I sometimes sign my code comments

Code and comments belong to the whole team. Once something lands in the codebase, the next reader tends to treat it as established fact, even when it started as one person’s hedge or guess.

Sometimes that is exactly the problem. Now and then I write a comment that is not settled truth. Maybe I am unsure, maybe it is a personal opinion, maybe it is only true for today.

Jul 2, 2026 2 min read #programming

Give your Composer script a second name

A composer script is often named after the underlying tool, like phpstan, because that is the binary the script calls. But what if you or the team always refers to the tool as larastan because that is the plugin or package providing most of the functionality for your project? “Did Larastan catch that?” asks another programmer, even though composer.json says phpstan.

Jun 2, 2026 1 min read #composer #ide-and-web-dev-tools