DEV Community

Julien Dephix
Julien Dephix

Posted on

Share your coding mistake(s)!

Hello, coders! 💻

I’ll get the ball rolling.

Back in 2006 we were building an e-commerce from scratch and in a hurry as deadline was very tight!
I was in charge of orders from shopping carts to order modifications.
Users were able to edit their orders until the same day at midnight.
Some users complained their orders were missing a DVD or a book. It was a bit random and hard to track.
Upon investigation my colleague realised I had forgotten the order ID clause when deleting products from orders...
So any users who removed a DVD from their own order would remove it from all orders! D’oh!

What are some oops moments you can share?

Top comments (0)