Download CV

Writing  ·  15 pieces

Each of these is a thing that broke, and what it taught

No tutorials and no takes. Every piece is a decision from a system I shipped, written while the reasoning was still fresh: what the obvious answer was, why it was wrong, and what it cost to do it properly.

showing all 15

01

Conflict resolution is a business decision, not a technical one

A delivery made offline at 14:02 arrives at 17:00, against a job the office reassigned at 14:30. Every obvious answer to who wins is wrong, and the right answer is not a technical one.

PostgreSQLOffline-firstNode.js

2 min read

Read →

02

A merge is only safe when neither side is asserting a fact

I wrote the conflict resolver wrong the first time. Four tests went red in under a second and told me exactly what I had misunderstood.

Node.jsPostgreSQL

2 min read

Read →

03

The scope of a credential should be inversely proportional to its lifetime

A driver phone must hold a working credential for nine hours with no way to check in. The standard playbook does not work here, and pretending it does would be the first vulnerability.

Node.jsPentestingOWASPOffline-first

2 min read

Read →

04

Order of checks is a security property

The same allowlist, the same resolver, the same logic. Move one check after the other and an attacker can smuggle a price change through a genuine delivery.

Node.jsOWASPPentesting

1 min read

Read →

05

The API was lying to me by being fine

Seven real defects found by running the system end to end rather than trusting six green test suites. The worst one reported success while writing nothing.

Node.jsPostgreSQLDocker

2 min read

Read →

06

Exactly-once, on a connection you do not control

A pharmacy till has to keep selling when the internet drops, then reconcile without recording a sale twice. That constraint decides the whole architecture.

Node.jsMongoDBOffline-firstPOS

1 min read

Read →

07

Three protocols, one pipeline: TCP, HTTP and WebSocket in a single process

IoT vehicle locks speak a proprietary binary protocol over raw TCP. Riders speak HTTP. The operator dashboard speaks WebSocket. All three have to agree on the state of one physical scooter.

Node.jsTCPSocket.IOIoTReal-time

1 min read

Read →

08

Syncing a catalogue you do not own

Tens of thousands of products from a third-party supplier, continuously synchronised. The bugs here are not in the fetch, they are in the clock.

Node.jsMongoDBMarketplaceE-commerce

1 min read

Read →

09

The database was the bottleneck: 6s to 2s on a live marketplace

A production marketplace responding in six seconds. The instinct is to suspect the sockets or add a server. Profiling said the database, and the fix cost nothing to run.

MongoDBNode.jsReal-time

1 min read

Read →

10

Two systems, one truth: bidirectional sync with an external ERP

A retailer already ran their business on an external ERP. Building a customer platform in front of it means deciding, per entity, which system is allowed to be right.

Node.jsERPE-commerce

1 min read

Read →

11

When the client controls the layout, the transport is a product decision

A retail client wanted to rearrange their storefront without filing a ticket. That single requirement is what made GraphQL correct and REST wrong.

GraphQLApollo ServerNode.jsE-commerce

1 min read

Read →

12

Escrow is not a boolean

Holding money between two parties looks like a status field. It is a balance, a state machine, and a transaction boundary you have to draw narrowly on purpose.

Node.jsMongoDBEscrowPaymentsMarketplace

1 min read

Read →

13

Inheriting a codebase you did not write, and migrating it anyway

Eighteen models in TypeScript over SQL, handed over to be moved to a new stack. The rewrite came out with sixteen, which is the number that mattered.

Node.jsMongoDB

1 min read

Read →

14

Schema as data: what a no-code CMS actually costs

Letting clients define their own content types means storing schemas as data. That buys instant onboarding and hands back things the database used to do for you.

MongoDBCMSMulti-tenantSaaS

1 min read

Read →

15

Proximity is a database problem, not an application problem

What is near me is the query a discovery platform lives on. Where you compute it decides whether the product still works once the catalogue is worth having.

MongoDBGeospatialGeoJSONNode.js

1 min read

Read →