25

Coworker made a tool to automate part of our job and she sent it to me. After 5 seconds of using it I found a bug... she has been using it for weeks. Now I don't trust anything she has done around here. (It's a financial tool and the bug is changing certain numbers to negative so it subtracts instead of adds...)

Comments
  • 2
    Run as quick as you can :D
  • 3
    Fincance has negative numbers too.. like for loses no? I think we need more context to judge your coworker
  • 2
    Are we talking " long overflow wrap around"- kind of numbers no one would actually plug in or reasonable use cases?
  • 2
    @mundo03 we sell a product where the minimum amount of units you can buy is 8500. Technically you can buy less but we still charge for 8500. Her tool would take 8500 minus the number of units purchased to see if we needed to add anything to the rate i.e. If they bought 7500 at $1 each it would do 8500 minus 7500 so you would have 1000 left over to multiply by the rate ($1) and add to the total. With me so far? Where it breaks is if they buy over 8500, say 9000. 8500 minus 9000 is negative 500 and when you multiply that by the rate and "add" it in it gives the customer a discount... this is a very simplified example but I hope it helps.
  • 1
    Lol, shitty alg.
Add Comment