Skip to main content
ArticlesProjects
Tag Archive

Articles Tagged: refactoring

Technical writings, opinionated architectures, and development guides tagged with refactoring.

Articles10
Est. Read Time74 mins
Categories1
Featured0
Aug 20264 min read
Laravel

Every Feature Touches Ten Files

Ten files open for a one line change is either layering working correctly or one idea smeared across a codebase. The count does not tell you which, and git history does.

Aug 20268 min read
Laravel

It Was Fine Until We Added A Second One

Every trigger in this series has been a second something. That is not a coincidence, and it is the only signal in here reliable enough to act on.

Aug 20268 min read
Laravel

Nobody Wants To Touch That Model

Every Laravel codebase has a model people route around. Counting its lines is the least useful thing you can do to it, and extracting traits is how the count gets hidden rather than fixed.

Aug 20267 min read
Laravel

The Interface With One Implementation

You added it so the thing could be swapped out later. Later arrived and nothing was. Counting implementations is the wrong test, and where the interface lives tells you far more.

Aug 20267 min read
Laravel

The Job And The Controller Disagree

The same operation runs from two entry points and they have quietly drifted. In Laravel that drift has a predictable shape, because validation lives at the edge and only one edge has it.

Aug 20268 min read
Laravel

The Rewrite You Should Not Do

You have run the diagnostics and you have a list. Now price the three options honestly, including the one where you do nothing, which is right more often than the other two put together.

Aug 20268 min read
Laravel

Your Test Suite Is an Architecture Report

A slow Laravel test suite gets treated as a tooling problem. It is usually a coupling measurement, and the number worth watching is not how long the suite takes.

Jul 202613 min read
Laravel

Strangling Procedural Legacy PHP into Laravel

Replace a procedural PHP monolith with Laravel one route at a time. Nginx ingress, session bridging that actually works, and Eloquent on a legacy schema.

Jan 20234 min read
Laravel

Reducing code duplication

Learn to reduce code duplication in Laravel using artisan commands and services for better code quality.

Nov 20227 min read
Laravel

Fun with Refactoring

Master the art of Laravel refactoring with Laravel Shift Blueprint, optimizing code for improved performance and management in a real-world Laravel project.