4 ms·
I still work in finance. This is nowhere even close to the worst thing I've seen just this week.
by uuyi 4y ago
I still work in finance. This is nowhere even close to the worst thing I've seen just this week.
- number6 4y agoWhat is the worst thing you saw this week?
- uuyi 4y agoSome code I wrote and the bugs I didn’t knew I wrote into it at the time.
- effingwewt 4y agoI'm sure most all of us have one or more personal stories like this, but many seem to forget them and focus on the schadenfreude. Sometimes shit just happens. Sometimes it's blind ignorance and an accident waiting to happen, sometimes it's a bad code review process. Seems to me it's seldom really the fault of the person making the commit.
- dahfizz 4y agoA bug in dealing with fixed point numbers that caused a price to be off by a factor of 10^8.
- uuyi 4y agoOh I had one of them a number of years ago on a well known e-commerce company’s back end ERP. Financial values were stored in int64 with the decimal position offset stored in a byte separately. The library that handled these values was poorly implemented so if you added values with different offset sizes without converting them and checking for overflow possibilities it’d do all sorts of undefined shit. I put a simple assertion in as a precondition check and this fired over 20,000 times within an hour of deploying it leading to several months of fixes, horrible discoveries and cheques written.