T
12

Last week I spent 8 hours on a bug that was just a missing semicolon

I started learning Python about 2 months ago and last Tuesday I hit a wall. I was writing a simple script to sort a list of numbers and it kept throwing an error. After staring at it for like 3 hours I finally asked on Discord. Turned out I forgot a colon after my for loop. It was such a dumb mistake but it took me the whole evening to find it. My buddy said that happens to everyone but man it hurt. Has anyone else spent a whole day on a tiny typo like that?
2 comments

Log in to join the discussion

Log In
2 Comments
logan_schmidt
Oh man, I feel your pain. Spent a whole afternoon once because I put a colon instead of a semicolon in JavaScript, couldn't figure out why nothing worked.
7
amy302
amy30212d agoMost Upvoted
Read an article once that said semicolons are like the blinkers of coding - totally invisible until you forget one and then the whole thing crashes. I still double-check my loops twice now, @logan_schmidt. I feel your pain.
6