30
My worst coding week started with a missing semicolon in line 47
Last Tuesday, I spent 6 hours trying to get a simple Python script to run, only to find out I'd forgotten a colon after an 'if' statement. I was following a tutorial from 'Automate the Boring Stuff' and felt completely stuck. Has anyone else lost a whole day to a tiny syntax error like that?
3 comments
Log in to join the discussion
Log In3 Comments
james9957d ago
Is it REALLY a lost day though? You still figured out what was wrong and probably won't make THAT mistake again. People act like a few hours of debugging is some kind of tragedy, but that's just how coding goes.
8
charlieo291mo ago
Man, that reminds me of when I was learning JavaScript and kept getting "undefined" errors. I wrote a whole function to check user login, but I spelled "username" as "usernam" in one spot. Took me forever to see it because my brain just autocorrected it while reading. The console log wasn't any help either, just pointed to a line way later. You ever stare at something so long the letters stop making sense?
5
laura_white991mo ago
Been there with the brain autocorrect thing. My eyes just glaze over after staring at code too long. Sometimes you gotta walk away for a bit to see it fresh.
7