O
-1

3 hours to fix a missing semicolon and I nearly threw my laptop

I was working on a basic Python script to sort my downloads folder and kept getting this weird syntax error. Turns out I forgot a single semicolon inside a loop and it took me from 6pm to 9pm to spot it. Anyone else spend way too long on tiny mistakes like that?
2 comments

Log in to join the discussion

Log In
2 Comments
haydenbutler
Did you try using a linter or an IDE that highlights syntax errors in real time? I used to drive myself crazy with missing colons and parentheses until I turned on Python's built in linter, caught that stuff before it ever hit the terminal. That one change saved me hours of squinting at code.
7
victor_adams
Man I feel your pain. Three hours for one dumb character is brutal.
2