Articles

Writing on software engineering and the decisions behind real systems.

Articles

Subscribe toTechNote

Join a growing community of 11,839 friendly readers.

11,839 readers

Each week, I share practical lessons on engineering, security and building products, plus highlights from the books I'm reading and tech news, straight to your inbox. It's free, and always will be.

By subscribing, you'll get my free newsletter, which sometimes mentions my book and products. Unsubscribe anytime. Read the privacy policy.

Read Articles

Keycloak Realm Configuration Best Practices: A Practical Guide

Keycloak Realm Configuration Best Practices: A Practical Guide

How to structure, secure and automate a Keycloak realm: realm layout, clients, roles, tokens, brute-force settings and identity as code with Terraform.

Keycloak Terraform Provider Tutorial: Identity as Code

Keycloak Terraform Provider Tutorial: Identity as Code

Set up the Keycloak Terraform provider: service account, realm, client, roles, remote state, import of existing config, verification and rollback.

What Is Identity as Code? A Practical Guide for Platform Teams

What Is Identity as Code? A Practical Guide for Platform Teams

Identity as code means defining realms, clients, roles and policies in versioned files, not admin consoles. How it works, where it breaks, and a worked example.

Managed Keycloak Hosting: What You Get and What You Still Own

Managed Keycloak Hosting: What You Get and What You Still Own

What managed Keycloak hosting actually covers, what stays your job, how to compare providers, and when self-hosting on Kubernetes is the better call.

Self Hosted Identity Provider Options: 7 Compared by Situation

Self Hosted Identity Provider Options: 7 Compared by Situation

Seven self hosted identity provider options compared: Keycloak, authentik, Authelia, Zitadel, Ory, Dex and FreeIPA. Strengths, limits and who each fits.

Keycloak vs Auth0 Comparison: Which Fits Your Team

Keycloak vs Auth0 Comparison: Which Fits Your Team

A practitioner's Keycloak vs Auth0 comparison: cost curves, ops load, customization, migration and lock-in, with a pick-by-situation recommendation.

OAuth2 vs OpenID Connect Explained: Authorization vs Login

OAuth2 vs OpenID Connect Explained: Authorization vs Login

OAuth2 grants access to APIs; OpenID Connect proves who logged in. Learn the tokens, flows and validation checks, with a worked example and pitfalls.

Kubernetes Rolling Update Strategy Explained: maxSurge to Rollback

Kubernetes Rolling Update Strategy Explained: maxSurge to Rollback

How the Kubernetes rolling update strategy works: maxSurge, maxUnavailable, readiness probes, PDBs, rollback, and when to pick Recreate or canary instead.

How to Migrate Bare Metal to Kubernetes Without Downtime

How to Migrate Bare Metal to Kubernetes Without Downtime

A practitioner's guide to migrate bare metal to Kubernetes: inventory, cluster build, parallel run, traffic cutover, verification and rollback.

AI Coding Assistants in Legacy Codebases: What Works

AI Coding Assistants in Legacy Codebases: What Works

How AI coding assistants behave in legacy codebases: where they help, where they fail, and a safe workflow built on characterization tests and small diffs.

Cursor Rules Best Practices: 7 Habits That Actually Work

Cursor Rules Best Practices: 7 Habits That Actually Work

Seven Cursor rules best practices from a platform engineer: scope, size, rule types, what to exclude, and how to test and prune rules so the agent follows them.

Test Driven Development With AI Agents: A Step-by-Step Guide

Test Driven Development With AI Agents: A Step-by-Step Guide

Learn how to run test driven development with AI agents: write failing tests first, constrain the agent, verify results, and roll back safely when it drifts.

How to Prevent AI From Breaking Existing Code: A Tutorial

How to Prevent AI From Breaking Existing Code: A Tutorial

A step-by-step routine to stop AI assistants from breaking working code: characterization tests, scoped diffs, protected files, CI gates and rollback.

What Is an Agent Harness? How It Works and When You Need One

What Is an Agent Harness? How It Works and When You Need One

An agent harness is everything around the model: tools, context, permissions, loop control and checks. Learn how it works, when to build one, and a worked example.

GDPR Data Erasure Implementation: A Step-by-Step Build Guide

GDPR Data Erasure Implementation: A Step-by-Step Build Guide

Build GDPR erasure that works in code: self-service deletion, staff review, one transactional path, outbox search deletes and anonymized orders.

Claude Code vs Cursor for Professional Work: How to Choose

Claude Code vs Cursor for Professional Work: How to Choose

Claude Code vs Cursor for professional work, compared on review control, repo scale, security, cost and team fit, with a pick for each situation.

Zero Downtime Deployment for PHP on Kubernetes: A Full Guide

Zero Downtime Deployment for PHP on Kubernetes: A Full Guide

Remove release downtime for a PHP monolith, a Next.js frontend and search on Kubernetes: probes, preStop drain, safe rollouts and Redis sessions.

How to Use Claude Code in Large Codebases: A Practical Guide

How to Use Claude Code in Large Codebases: A Practical Guide

A step-by-step guide to using Claude Code in large codebases: layered CLAUDE.md files, plan mode, scoped tasks, hooks, and a rollback routine.

How to Write a CLAUDE.md File That Claude Actually Follows

How to Write a CLAUDE.md File That Claude Actually Follows

Write a CLAUDE.md that Claude Code actually follows: what to include, what to cut, how to scope rules, and how to test and roll back changes.

AI Code Review Checklist for Teams: 9 Checks I'd Enforce

AI Code Review Checklist for Teams: 9 Checks I'd Enforce

An AI code review checklist for teams: nine checks for AI-generated diffs, each with its strength and limit, plus a routine to run weekly.

How to Review AI Generated Code: A Practical Guide

How to Review AI Generated Code: A Practical Guide

A practical guide to reviewing AI generated code: check intent, dependencies, tests and security, then turn it into a routine your team repeats.

Keycloak on Kubernetes Setup: A Production-Ready Guide

Keycloak on Kubernetes Setup: A Production-Ready Guide

Set up Keycloak on Kubernetes with PostgreSQL, TLS ingress, HA clustering, a hardened image and realms as code. Step-by-step, production-minded guide.

"SaaS Is Dead": Why You Should Ignore Every "X Is Dead" Headline

"SaaS Is Dead": Why You Should Ignore Every "X Is Dead" Headline

Everyone is repeating that SaaS is dead because AI agents will absorb business applications. I have been hearing this exact song since 2013, when I started with PHP — a language that has been declared dead every year since, and that earned me around $150,000 in the last two years.

This article traces where the "SaaS is dead" claim actually came from, why death headlines are marketing instruments rather than analysis, and how to tell genuine technological decline from a hype cycle — without turning "ignore the noise" into an excuse to stop learning.

How to Structure a Codebase for Scale and Maintainability

How to Structure a Codebase for Scale and Maintainability

Most advice about structuring a codebase assumes you are starting from an empty repository. Real work rarely looks like that. This article argues that structure is a response to a diagnosed problem, not a decision you make up front, and shows how to build the understanding that makes the decision possible.

It covers a verification loop for learning an unfamiliar system, the case for isolating business logic per endpoint (including what that approach costs), how to live with a legacy component that works but resists change, and what undocumented infrastructure does to a migration.

How I Rebuilt My 10-Year-Old Open Source Package with Cursor and Claude

How I Rebuilt My 10-Year-Old Open Source Package with Cursor and Claude

I rebuilt my ten-year-old Laravel package in two phases: a beta built with Cursor using a test-first agent loop, and a stable release built with Claude that split the package into a framework-agnostic core and a thin Laravel wrapper.

This is the workflow in detail — explaining expectations, having the AI write tests, reviewing those tests before letting the agent loop to green — plus the honest boundary of the method: passing tests are a claim about the code, not about the platforms it talks to.

What 10 Years of Maintaining an Open Source Package Actually Taught Me

What 10 Years of Maintaining an Open Source Package Actually Taught Me

I published a small Laravel package about ten years ago so a freelance client could stop copy-pasting blog content into three social networks. Since then it has been renamed twice, survived a long maintenance gap during an international move, led to a stranger thanking me on a street in Mashhad and a job offer from a US startup, and finally became the foundation of a product.

This is what actually happened in between: what renaming a package really costs, what users do when you go quiet, and the unpredictable places a public package can take you.