How Targeted Diagnostics Killed a Timezone Bug I'd Been Guessing At
I spent two deploys guessing at the wrong things. One targeted diagnostic commit found it in minutes. The bug was a timezone offset — server-rendere
A lab notebook: what I'm learning while building with AI, written as I go.
I spent two deploys guessing at the wrong things. One targeted diagnostic commit found it in minutes. The bug was a timezone offset — server-rendere
Requiring env vars at startup is good. Requiring every var in one shared list that every route calls is a trap — one missing secret nukes your
I added AI-generated action plans to a webinar analytics dashboard. They looked polished and confident. They were confidently wrong — because the da
Our watch-through metric looked terrible — until I realized we were measuring against the wrong thing entirely.
When your upstream data is corrupted, stop trying to clean it. Find a reference in your own system that you know is correct, and derive everything fro
After a sales data import, the dashboard still showed old numbers. I rewrote the entire write path before realizing the data was saving perfectly. The R
Vercel double-escapes in JSON env vars. One .replace() call and a try/catch fixes it. But the real lesson is the hardcoded fallbacks that wer
The Setup
If your Supabase database column can be NULL, your Swift Codable struct MUST declare it Optional. One mismatched type fails the entire query decode
Optimistic form dismissal feels fast. It also hides every failure. Await the server. Then dismiss.
In Swift, named parameters to struct memberwise initializers must match declaration order — not the order that looks logical to you. Get it wro
Supabase rolled out new-format API keys. The anon key is now sbpublishable..., not the old eyJ... JWT. If you're bootstrapping a Swift project
For a demo, the backend is a liability. Kill it entirely. Hardcode the data, gate it behind a guest toggle, ship.
<canvas> is a replaced element. position:fixed; inset:0 will NOT size it to the viewport. Set explicit width:100vw; height:100vh in CSS AND si
SupabaseClient got the URL and anon key swapped. Swift compiled it without complaint. Everything failed silently. The fix was one line.
Supabase's batch upsert silently turns missing keys into NULLs — which bypasses your schema defaults and can quietly discard your data. error === n
If you're demoing a Supabase-backed iOS app live, add a guest mode with hardcoded data. Eighty lines of Swift buys you a demo that runs in airplane