Writing

Notes on building for the long haul.

Essays, deep-dives, and the occasional rant — across WordPress, Laravel, React, AI, software architecture, and whatever I'm learning lately.

RAG over your own docs: a small, honest architecture

Most chat-with-your-docs projects fail on retrieval, not on the model: the right paragraph never reaches the prompt. Here is the small RAG architecture I build, with Postgres, citations, a refusal path and an eval set.
AI Engineering

Typed REST clients in TypeScript for WordPress and Laravel APIs

When a React app talks to a WordPress or Laravel API through scattered fetch calls, a renamed field breaks screens silently. Here is how I build one typed client per API so drift fails loudly in development, not quietly in production.
React & Frontend

Kubernetes for a small PHP team: when a single VPS is the better call

Kubernetes solves real problems, but a three-person PHP team often buys them a year early. Here is how I decide between one well-run VPS, a few boxes, and a cluster, and what has to be true before Kubernetes pays for itself.
DevOps & Cloud

The first week on a legacy WordPress codebase: my audit routine

Inheriting a WordPress site nobody fully understands is risky in the first week, because every change is a guess. Here is the audit routine I run before touching code, so the first fix is safe and the plan is based on facts.
WordPress

Subscription billing edge cases: proration, failed renewals, dunning

Subscriptions rarely fail on the happy path. They fail on plan switches, declined renewals and the emails in between. Here is how I design proration, retries and dunning so recurring revenue doesn't leak or double-charge.
WooCommerce

Laravel Octane in production: what changes and what breaks

Octane makes Laravel faster by keeping the app in memory between requests, which also means state from one user can leak into the next. Here is what changes in production, what tends to break, and how I roll it out safely.
Laravel

Estimating engineering work honestly: ranges, risks and what I tell clients

A single-number estimate is a promise made before anyone knows the work. Here is how I give ranges, name the risks that drive them, and narrow the estimate as the project teaches us more, so founders can plan without being surprised.
Career

WordPress multisite in 2026: when it still makes sense

Multisite turns many WordPress sites into one install with one codebase, one database and one point of failure. Here is how I decide whether a network will save an agency time or quietly lock every site into the same problems.
WordPress

Shopify app or WooCommerce plugin: where to build a commerce product

Building a commerce product to sell to merchants means choosing who controls your billing, your updates and your support load. Here is how I decide between a Shopify app, a WooCommerce plugin, and selling it yourself with SureCart.
WooCommerce

Adding AI features to a SaaS without a surprise API bill

AI features are cheap in a demo and expensive at scale, because every click becomes a paid API call nobody priced. Here is the architecture I use to keep model costs measured, capped per customer, and built into the plan.
AI Engineering

React optimistic updates: when to fake it and how to roll back

Optimistic updates make an admin feel instant, until a failed request leaves the screen showing something the server never saved. Here is how I decide which actions get them in TanStack Query, and how I make every rollback safe.
React & Frontend

Code review comments that make a team faster, not slower

Most slow code reviews are not slow because of the code. They are slow because comments are vague, unranked, and late. Here is how I write review comments so a pull request gets better and merges in one or two rounds.
Career

Laravel multi-tenancy: one database, schemas, or one per tenant?

How you separate customer data in a Laravel SaaS decides your hosting bill, your migrations and your worst-case data leak. Here is how I choose between one shared database, schema-per-tenant, and database-per-tenant.
Laravel

9 signs your WordPress site needs a plugin audit, not another plugin

When a WordPress site gets slow, fragile or scary to update, the usual fix is one more plugin. Here are nine signs the real fix is an audit, and the routine I use to decide what stays, what goes, and what gets replaced.
WordPress

Building an MCP server for a WordPress site, safely

An MCP server lets AI agents read and change your WordPress site, which makes it a new front door. Here is how I build one on the Abilities API: narrow tools, a dedicated user, and permission checks that hold when the model is wrong.
AI Engineering

Writing a technical design doc a product manager can actually read

Most design docs are written for the engineer who wrote them, so the people who approve the work skim, nod, and get surprised later. Here is the structure I use so a product manager can read the first page and make a real decision.
Career

Headless WooCommerce: when it's worth it and when it's a trap

Headless WooCommerce promises a faster, more flexible storefront, then quietly turns one website into two systems. Here is how I decide when the split pays for itself and when a well-built classic store wins.
WooCommerce

Structuring a Laravel SaaS codebase for its first three engineers

A Laravel SaaS built by one founder usually breaks the week a second and third engineer join. Here is the structure I set up so three people can ship in parallel without stepping on each other or rewriting it a year later.
Laravel

Hiring a senior WordPress engineer vs an agency: what each is good at

Agencies and senior engineers solve different problems. An agency delivers a defined project on a deadline; a senior engineer owns a system that keeps changing. Here is how I tell which one a WordPress or WooCommerce business needs.
Career

Why your WooCommerce checkout slows down after 50K orders

A WooCommerce checkout that was fast at launch often crawls once the store has years of orders. The cause is rarely traffic. It is data that grew, work that runs inside the checkout request, and tables nobody cleans.
WooCommerce

Docker images in CI: BuildKit cache, immutable tags, and the scan gate I trust

A clean Dockerfile is only half the story. The other half is the pipeline that builds it: cache that actually hits, tags that never move under you, a vulnerability gate people do not learn to ignore, and a deploy that pins a digest instead of hoping latest is the right latest.
Engineering

PHP value objects and enums: the money, status, and ID types I trust

Most production bugs I have chased in PHP were not clever. They were a float pretending to be money, a string pretending to be a status, or an int that was the wrong kind of ID. Here is how I use readonly value objects and backed enums to make those bugs hard to write in the first place.
Engineering

Redis caching in Laravel: stampedes, invalidation, and the keys I trust

Adding Cache::remember everywhere feels like a performance win until a key expires under load and fifty workers rebuild it at once. Here is how I design Redis cache keys, invalidation, locks, and fallbacks in Laravel so caching stays a feature, not a source of mystery bugs.
Engineering

Zero-downtime Laravel deploys on a small VPS: atomic releases I trust

A git pull on a live server is not a deploy strategy. Here is how I ship Laravel to a single VPS with atomic release folders, a symlink switch, safe migrations, graceful PHP-FPM and queue reloads, and a rollback I can run half asleep.
Engineering

React form state and TypeScript validation I trust in admin UIs

Admin forms are where React apps quietly rot. Here is how I shape form state, schema validation, server errors, and dirty tracking with TypeScript so settings screens stay honest as they grow.
Engineering

Laravel policies, gates, and Form Requests I trust before controllers grow secret ifs

Controllers full of ownership ifs are how authorization drifts. Here is how I shape Laravel policies, gates, and Form Request ownership so admins, teams, and API clients stay honest under real product pressure.
Engineering

Docker Compose healthchecks and secrets I trust before local lies to prod

A green docker compose up is not parity. Here is how I shape Compose healthchecks, secrets, overlays, and profiles for PHP and Node stacks so local and prod stop drifting in the ways that hurt.
Engineering

MySQL indexes, EXPLAIN, and transactions I trust before blaming PHP

When a Laravel or PHP app feels slow, I stop staring at controllers and open EXPLAIN. Here are the index shapes, transaction habits, and migration rules I trust before I blame the framework.
Engineering

React data-fetching patterns I trust before a dashboard lies

A React admin that shows stale totals after a mutation is worse than a slow spinner. Here is how I shape TanStack Query, cache keys, and mutation boundaries so dashboards stay honest under real traffic.
Engineering

Laravel Horizon production patterns I trust before queues go quiet

Horizon is not a pretty dashboard — it is how I keep Laravel queues honest under real load. Here is the supervisor math, timeout discipline, failed-job hygiene, and metrics I ship before I call a queue stack production-ready.
Engineering

AWS S3, CloudFront, and IAM patterns I ship with Laravel before overbuilding

Most Laravel teams jump to ECS before they fix IAM, S3, and CloudFront. Here is the AWS baseline I ship first — least-privilege roles, private buckets, signed URLs, and a CDN that does not leak origin pain.
Engineering

Nginx and PHP-FPM settings I trust on a VPS before traffic hurts

A cheap VPS can serve a serious PHP app — until worker math, upstream timeouts, and buffering defaults fight you. Here is the Nginx and PHP-FPM baseline I ship before I blame the framework.
Engineering

Eloquent query patterns I trust before traffic doubles

Laravel apps rarely die from one slow query — they die from N+1 storms, over-selected columns, and Resource-driven query fans. Here is how I shape Eloquent so the app still breathes when traffic doubles.
Engineering

Docker multi-stage builds I trust for PHP and Node apps

Fat images hide secrets, stretch cold starts, and make local and prod drift. Here is how I design multi-stage Dockerfiles for PHP-FPM and Node so build tools stay out of runtime and healthchecks stay honest.
Engineering

WordPress REST API routes I trust in production

Most plugin REST bugs are permission, schema, or side-effect bugs — not routing bugs. Here is how I design WordPress REST routes so admin UIs, storefront clients, and webhooks stay honest under real traffic.
Engineering

Object cache patterns that keep WooCommerce plugins honest under load

Redis and Memcached do not make a WooCommerce plugin fast by magic. Here is how I design cache keys, groups, invalidation, and stampede protection so plugins stay correct when traffic spikes.
Engineering

Idempotent WooCommerce payment webhooks: survive retries without double work

Retries, out-of-order delivery, and gateway double-posts will hit every payment plugin. Here is how I design WooCommerce webhook handlers so the same event never double-charges, double-fulfills, or corrupts order meta.
Engineering

PHP 8.6: partial application, Duration, and the deprecations that prepare PHP 9

PHP 8.6 is a small surface release with a heavy deprecation map toward PHP 9 — Partial Function Application, Duration, clamp(), session default flips, and the cleanup checklist I use for WordPress and Laravel plugins.
Engineering

Serving LLMs: GPUs, model servers, and the cache that makes chat fast

What actually runs behind a chat box: GPU memory, model servers, tokens, KV-cache, batching, and sticky routing — walked with a request-path diagram and mini console.
Engineering

Gutenberg @wordpress/data: store patterns that keep editors honest

Most Gutenberg bugs I chase are not React bugs — they are store bugs. Here is how I design @wordpress/data stores so selectors, resolvers, and dispatches stay predictable in real editors.
Engineering

PHP 8.4 object modeling: property hooks and asymmetric visibility

PHP 8.4 lets me keep Order invariants without getter/setter noise: asymmetric visibility for status, set hooks for email normalization, and virtual properties for derived labels.
Engineering

WooCommerce Blocks checkout: extend Store API without breaking cart

Shortcode checkout hooks do not travel to Blocks. Here is how I extend WooCommerce cart and checkout through the Store API so fees, fields, and payments survive without breaking the cart.
Engineering

Laravel queues beside WordPress: keep WooCommerce plugins out of long jobs

When a WooCommerce plugin should not own webhooks, reconciliation, or report exports, I put that work on a Laravel queue service and keep WordPress thin — REST callbacks and Action Scheduler only as a bridge.
Engineering

WordPress plugin dependency injection: stop new-ing everything in plugins_loaded

Most WordPress plugins are a tangle of singletons and global functions. Here is how I introduce a small service container so features stay testable, swappable, and honest about their dependencies.
Engineering

React in the WordPress admin: stop fighting PHP pages

Shipping a React screen inside wp-admin is easy. Shipping one that survives capability checks, REST auth, and real merchant workflows is a different craft.
Engineering

HPOS-ready WooCommerce plugins: stop treating orders like posts

High-Performance Order Storage changed how WooCommerce stores orders. Here is the data-access discipline I use so plugins keep working when postmeta is no longer the source of truth.
Engineering

Action Scheduler patterns that keep WooCommerce plugins from timing out

Checkout cannot wait for your bulk sync. Here is how I design Action Scheduler jobs in WordPress and WooCommerce plugins so work finishes without hanging the request that started it.
Engineering

Production debugging for WordPress plugins: what staging never teaches you

Staging green and production on fire is a pattern, not bad luck. Here is how I actually debug WordPress and WooCommerce plugins when the failure only exists on a real store.
Engineering

The MySQL queries that look fine until 100K shops open the plugin

A plugin can pass code review and still melt a store. The query that costs 2ms on your laptop is a different animal on a WooCommerce database that has been alive for six years.
Architecture

Gutenberg block deprecations without breaking a hundred thousand editors

Changing a block’s save() output without a deprecation is how you turn a routine release into an editor outage. Here’s the migration path I actually use when markup has to evolve.
Architecture

What you must never forget when building a Gutenberg block in WordPress

Most Gutenberg pain isn’t React — it’s choosing the wrong render model, skipping migrations, ignoring accessibility, or fighting the browser instead of using the Interactivity API. Here’s the checklist I wish every new block started with.
Architecture

WooCommerce vs Shopify vs SureCart: custom builds in the AI era

Three platforms, three different deals. Where each one wins, where each loses, and why AI-assisted Gutenberg / Elementor / Bricks template work compounds harder on SureCart than on the other two.
Ecommerce

Hiring a freelance WordPress plugin developer: a practical guide

A senior engineer's checklist for hiring freelance WordPress and WooCommerce talent — what actually matters, what's a red flag, and how to write a brief that gets you good replies.
Hiring

Welcome to my blog

A short note on why I'm starting to write here, what to expect, and how this little site is built.
Meta

Trading fast hands for trusted judgment: notes from the AI-era reset

For seven years I was valued for shipping fast. In 2026, that's becoming the cheap part. Here's the shift I'm making in how I work, why I'm making it, and what I think it means for the engineers around me.
Career

The slow way to become an engineer whose opinion changes rooms

A four-phase practice I'm using to grow from "fast hands" into "trusted judgment". No shortcuts, no productivity hacks — just the actual gradient, with the specific habits I'm running each week.
Career

WooCommerce vs Shopify for custom ecommerce builds

I've shipped production work on both platforms — WooCommerce stores serving 100K+ shops, Shopify integrations handling 10K+ merchants. Here's how I actually decide which one fits a brief, with no platform tribalism.
Ecommerce

Building a payment gateway used by 10K+ European merchants

A retrospective on the Paysera payment gateway — Symfony microservices, WooCommerce / Shopify / Magento plugins, and the boring engineering decisions that kept 10K merchants from noticing us.
Case Studies

SOLID principles for WordPress plugins (without the dogma)

A practical, opinionated take on applying SOLID to real WordPress codebases — where it helps, where it hurts, and where it's just CS-class noise.
Architecture
END OF FEED