↑↓ move↵ open⌘K toggle

    blogs/notes.json

    Notes.

    Write-ups of the problems behind the work: what broke, what I tried and the code that shipped.

    1. 01Quantity breaks with a Shopify Discount FunctionHow I price 2-pack and 3-pack breaks with a Discount Function: tiers in a metafield, the highest tier wins, and checkout does the math.Nov 5, 2026 · 5 min read · Shopify Functions · Discounts · Checkout · Testing
    2. 02Flicker-free A/B tests on Cloudflare WorkersHow the live test on this site's home page buckets visitors on the server, counts exposures only when seen and keeps one row per visitor in D1.Nov 5, 2026 · 5 min read · A/B Testing · Cloudflare Workers · D1 · Performance
    3. 03Why full-page screenshots of modern stores come out blankScroll-reveal sections and lazy images never paint in a one-shot full-page screenshot. Here's the screen-by-screen capture script I use instead.Nov 5, 2026 · 5 min read · Playwright · Tooling · Screenshots · Node.js

    sections/contact.liquid

    Let's buildthe next one.

    Hiring for a senior Shopify role, need a storefront rebuilt, an app built or a workflow automated? Send a line.