Joe Brady

Software

Dev Diary #3: The Sneaky Issue That Was Silently Ruining Our Database | HackerNoon

It’s one o’clock in the morning. My phone starts going crazy. I groan and look over. Sure enough, it’s another PagerDuty call. I am on-call this week, and it’s the third time in as many days that I have been woken up for the same reason. Hundreds of our customers have complained in unison, for three days in a row, that they have purchased event tickets from us and arrived at the venue only to

Read More »

Dev Diary #2: Run Away from Nesting Functions in Your Code | HackerNoon

Picture the scene: You have a critical bugfix to make in your payments system, and the stakeholder is nervously watching on from the corner of the room asking helpful things like “How close are we to the fix?”. You start by looking at some code in get-payment-methods.ts, the top-level entry-point of an API route. // get-payment-methods.ts const getPaymentMethods = async (req) => { const paymentMethods = await loadPaymentMethodsForCustomer(req.customerId); return res.send(paymentMethods); } That looks reasonable, you think to

Read More »