Build notes
Explanations of real code from my projects, with the reasoning behind it.
Storage
Resumable uploads without server-side session state
How my file storage app sends large files in pieces and picks up where it left off after a dropped connection.
StorageStopping two uploads from claiming the same filename
Checking whether a name exists is not enough when requests run at the same time. A short reservation closes the gap.
Bio and WidgetFinding the current lyric line
Parsing timed lyric files, searching them quickly, and refusing results that belong to a different recording.
BioMaking an audio seek bar feel smooth
Preview while dragging, one redraw per frame, and a short animation that a newer action can interrupt.
WidgetA background sync that only writes when something changes
How a scheduled Cloudflare job updates a Discord widget without wasting requests or giving up after errors.