Notes
Notes on problems I ran into while building these projects, and how I solved them.
-
Two votes at once: serializing writes to a JSON file
A Discord bot that stores votes in a JSON file can lose a vote when two people click at the same moment. How a one-line promise queue and an atomic rename fixed it.
-
Screenshotting a staff-only tool without leaking real data
How I got a real screenshot of a staff-only log viewer full of player data: run the real front end in Playwright and answer every API call with fake data.
-
Two launch bugs: a cached language redirect and Cloudflare's email obfuscation
Launching this site behind Cloudflare revealed two bugs local tests missed: a cached language redirect and an email address that turned into a placeholder.
Contact
Questions about one of these projects, or something else? Message me on Discord or send an email.