News for hackers. Stuff that matters.
Re:My bank sent me 64 copies of the same debit card by adamswann on Thursday March 11, 2021 @06:39PM (#26430455)
I once introduced a bug that squared each customer's order quantity.

Order 8 of the thing, we shipped 64. Oops.

Nutshell: The items were sold in bundles. To arrive at the quantity to ship, you multiply the quantity of bundles ordered by the quantity of each item in the bundle (just 1 or 2 in most cases). I got my variables confused and multiplied the order quantity by itself.

Not my best day.

Re:My bank sent me 64 copies of the same debit card by stevesimmons on Thursday March 11, 2021 @07:08PM (#26430672)
I once saw this in a downstream system that if an order was entered calculated price with the square of the quantity.

And the order in question was for 1000 400oz bars of gold (value $700k each).

Re:My bank sent me 64 copies of the same debit card by bombcar on Thursday March 11, 2021 @07:12PM (#26430709)
This can be hard to notice as the square of one is one.