
2026-10-03 · Architecture · Nativa Dev
ThemeRenderer had two implementations and zero calls ... and no test noticed. Part 1 drew the boundary, part 2 split the frontend, part 3 finds code nobody calls, and the rule that will not find it again.
Read article →
2026-09-13 · Architecture · Nativa Dev
The 751-line Shell and 659-line Renderer in the moonshine theme fell into sections, critical CSS in eight classes with proven byte-parity, chrome in its own classes, and a renderer facade with zero magic. Along the way, the refactor showed why a class name can collide with a PHP 8.5 import.
Read article →
2026-08-30 · Clean Code · Evan McDan
We built bulk delete for four admin tables. Then we duplicated every table renderer. The fix was one shared class per entity, but getting there taught us something about HTMX and code ownership.
Read article →
2026-08-11 · Architecture · Nativa Dev
A new series. Clean code isn't aesthetics ... it's maintainability. Part 1 explains why code is read ten times more often than it's written, shows the map of the whole series and the first real example from this repo.
Read article →
2026-08-11 · Architecture · Nativa Dev
One method, one class ... one thing. Part 3 explains why 'this does A, B and C' is a smoke signal, how handle() split into helpers and why BlogArticleAction, BlogAuthorResolver and AuthorAvatar are three classes with three jobs.
Read article →
2026-08-11 · Architecture · Nativa Dev
DRY doesn't mean 'as few lines as possible' ... it means one place of truth. Part 4 shows real duplication from this repo (resolveCover in two classes), why LocalStorageProvider correctly has no interface and how a test with baseline 0 enforces it.
Read article →
2026-08-09 · Architecture · Nativa Dev
One method = one thing, named. The final part of the series about why the starter kit forbids methods longer than 60 lines ... and what happens when you break it (a real story from the codebase).
Read article →