16
PSA: I spent 6 months writing code with a semicolon in the wrong spot in every single loop
I finally noticed when my instructor pointed out that none of my for loops were actually running the second statement because I had a semicolon right after the parentheses, and I had just been assuming the code was executing silently - has anyone else had a tiny syntax issue mess up hours of work?
2 comments
Log in to join the discussion
Log In2 Comments
skyler_anderson6522d agoMost Upvoted
A semicolon is just a character, six months of not noticing it sounds like a bigger issue with how you debug code instead of blaming the tool. You probably learned way more from that mistake than you would have from getting it right the first time, so maybe it was actually a good thing.
8
hannaht2922d ago
That's Actually a really good point, sometimes painful lessons stick way better than easy wins.
4