Tag
Code organization
Every article on Code organization, newest first.
- 20Articles
- 135 minOf reading
- 5Subjects
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.
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.
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.
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.
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.
Controlling Code Quality When an Agent Writes Your Laravel
Specs, ADRs and path-scoped rules. The three layers of context I build around an agent so it writes Laravel the way my codebase does, not the way every tutorial does.
Introduction To Systems Architecture
Learn how to map application components, layers, and dependencies before you start building.
Thinking In Layers
Use layered thinking to place logic in the right part of your application before it turns into a mess.
Why your Laravel controllers should be almost empty
Controllers are a transport layer, not a home for business logic. How I keep Laravel controllers down to a handful of lines using Form Requests, payloads, and Action classes.
The Pattern-First Trap in PHP
Why starting with design patterns too early can overcomplicate PHP apps, and a practical way to design from constraints instead.
Building modular systems in Laravel - A practical guide
Learn how modular architecture transforms Laravel apps into scalable, maintainable systems.
Modelling Business Processes in Laravel
Simplify complex business processes in Laravel using pipelines for clean and elegant code.