15 common bugs to recognize. Click any title to see the code + the fix.
This endpoint lists a user's orders. What's the most serious issue?
The assertion fails intermittently with a value less than 1000000. Why?
This runs fine in dev but the connection pool exhausts in production. What's wrong?
What's the most serious issue with this search endpoint?
What's the most serious issue here?
This endpoint serves fine under low load but tail latency explodes under concurrency. Why?
What is the most serious correctness issue (assume userPath is already validated to be a safe filename)?
An attacker can crash this worker with a single small request. What's the issue?
What's the subtle bug in reapExpired?
main prints true — but a similar-looking input prints false. Where's the bug?
This works correctly but melts at production scale. What's the issue?
Why does this raise ValueError instead of returning 0.0?
What's the security flaw here?
Users report their email change doesn't show up until the process restarts. Why?
A logged-in user visits evil.com and money leaves their account. What's missing?