Hot take: I spent 3 hours stuck on a missing semicolon and now I check line numbers before I panic | Coding For Beginners - Freelance Forum - The Community for Independent Professionals
Hot take: I spent 3 hours stuck on a missing semicolon and now I check line numbers before I panic
Last month I was working through a Python tutorial on my lunch breaks, just trying to get a simple calculator script to run. I hit run and got a SyntaxError pointing at line 47, and I spent almost 3 hours rereading that one line, changing quotes, moving brackets, convinced the tutorial was wrong. My buddy who does Java for a living glanced at it for 10 seconds and said "dude, look at line 44, you forgot a colon after your if statement." I felt so dumb but also kind of relieved, because the error message was just pointing at where the code broke, not where I messed up. Now I always scroll up a few lines before I freak out, and it has saved me from at least six more of those rabbit holes. Has anyone else had a bug that made you question your whole brain, and what's your go-to move before you start changing stuff?