22
ctnqhk
2y

Got an email from a stakeholder about a $0 transaction for an item that was not meant to be $0. Found someone put a condition in the code to set the price to $0 if it couldn’t be queried from the database. Wut…that is…not logical 😵‍💫😵

Comments
  • 14
    I tecently bought high quality mattress from 0 euro. These things are real. And no, i have no regrets or shame.
  • 3
    Curse OOP and exceptions for normalising neglecting the sad path.
  • 3
    Ah yes, the good old "I don't want to implement error handling"...
    This is one of the reasons why legacy hell exists.
  • 0
    @aviophile and you’d shouldn’t feel regret or shame
  • 1
    Send us the link before you fix it
  • 0
    @lbfalvy 🤦‍♂️
  • 0
    @Crost unfortunately it’s nothing you’d want…I think…it’s a membership for a stodgy museum
  • 1
    It is logical. The goal of thgis change was to avoid "failed" transactions and I would guess the person decided that giving something for free is better than to have a registred bug
  • 0
    @NoToJavaScript then I guess we deduct the lost revenue from that dev’s paycheck like they do in the food service industry
Add Comment