4
Deleted 300 lines of my own code and the app finally worked
Spent 3 weekends debugging a Python script that kept crashing, then my buddy glanced at it for 5 seconds and asked why I was rebuilding the same loop 14 times. Cut it down to 40 lines and it ran perfectly, any of y'all ever realize your own overthinking was the real bug?
2 comments
Log in to join the discussion
Log In2 Comments
the_pat24d agoProlific Poster
wait, 14 times?? like the exact same loop copy pasted and tweaked 14 times? bro that is some next level commit to the bit, i would've just made a function on day one. i once spent 6 hours "fixing" a date picker only to realize i had the timezone set to UTC in like three different places and it was canceling itself out, my coworker literally just deleted one line and the whole thing worked. it's humiliating but honestly it's how we learn, you never forget the pain of overbuilding something that simple after you see the fix.
7
the_hugo23d ago
yeah i've done that with a garage door opener script, spent a whole weekend on some fancy timer logic and then realized the built in delay function did everything i needed, nothing like seeing your dumb ass code after someone points out the obvious.
7