Debugged a loop that ran 10,000 times instead of 100 in my Python script at 3am on a Wednesday, cost me my whole dataset
I was sitting in my laundry room with a laptop on the dryer, watching my results pile up wrong for 45 minutes before I noticed the range() call said 10000 instead of 100, and by then my CSV file had 9,900 extra rows I had to manually clean out, so what do you guys do when a sneaky off-by-multiple error wastes your time like that?