← Binderdex dev log

A parity check caught it before collectors did

#tcg#data#product

Two columns of bars are compared row by row; the amber column has eight, the grey column has six, and two dashed outlines mark what is missing

On Monday night I switched collection imports to a quicker read path. The tests passed. By Tuesday morning the quick path was coming back short on a real, live collection.

Collection import is the feature in Binderdex, a Pokémon card collection and price app. A collector pastes a public link to a collection kept in another app, and Binderdex reads that page and brings the cards in. The quick path was a faster way of reading that page. The verified path is the slower way I'd already checked against real collections.

No collector reported it. A parity check did. It counts what the new source returns and compares that with the count from the source I already trust, and on that collection the two disagreed.

Unshipped within hours

I still don't know why the quick source came up short, and I didn't need to know before acting. The default flipped back to the verified path within hours. The quick path stays in Binderdex as an explicit opt-in.

A slow import is an annoyance. An import with cards missing breaks the one promise the feature makes.

QUICK PATH shipped Monday night, tests green Quicker read path Ships behind a flag Parity check: counts against the trusted source Counts match, repeatedly: promote to default Any gap: default goes back to verified Default until then: verified but slow not yet: still opt-in Tuesday morning: short on a live collection
The quick path has to earn the default on real collections, and one gap sends it back.

The pattern I'm keeping

Verified-but-slow is the default. A faster path ships behind a flag, a switch I can turn off without shipping again, and gets promoted only after the parity check passes on real data, repeatedly. My tests told me the code did what I wrote. The parity check told me whether what I wrote matched a real collection, and that turned out to be a separate question.

This is the build log for Binderdex (www.binderdex.com) · All entries · Weekly essays