Grokking Staff Engineer Interview
0% completed
AI Coding Tools and Engineering Quality
// Generated change. Request: "retry seller fee charges when the payments API times out" async function chargeSellerFee(sellerId, amountCents) { for (let attempt = 1; attempt <= 3; attempt++) { try { return await payments.charge({ sellerId, amountCents }); } catch (err) { const retryable = err.code === 'TIMEOUT' && attempt < 3; if (!retryable) throw err; await sleep(250 * attempt); } } }
An engineer on the seller tools team asked an AI coding assistant for this change, and the assistant also wrote a test
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%