ENGINEERING NOTES
Notes on things I built and got wrong
Each note starts from real code in one of my projects, explains what it actually does, and ends with what I would change.
- The race condition in SkillMatch’s attend routeDisabling the Attend button stops one person from overbooking a workshop. It does nothing about two people. Here is why, and the one-query fix.Read note
- What a sliding-window rate limiter actually countsI used Upstash’s slidingWindow in ThinkBoard without knowing how it worked. Reading its Lua script showed it is an estimate, and why that is a good trade.Read note
- How one blocking call froze my Discord botWhile the local model was thinking, my bot could not answer anyone else. The cause was one ordinary HTTP request inside an async function.Read note