F
10

Just realized a missing semicolon cost me four hours yesterday.

My loop wouldn't run and I stared at the screen forever. Anyone else have a simple typo ruin their whole afternoon?
4 comments

Log in to join the discussion

Log In
4 Comments
finleyl39
finleyl394d ago
I mean, four hours is a lot for one semicolon though. Maybe you need a better process for checking your code first. It just seems like an overreaction.
6
the_fiona
the_fiona4d ago
Four hours hunting a missing semicolon sounds about right for some code bases I've seen. @finleyl39 has a point about checking first, but you don't always know what you're looking for. That tiny mistake can break EVERYTHING in a way that's not obvious. Calling it an overreaction misses how these things snowball when you're deep in it.
8
nguyen.morgan
Absolutely! The smallest syntax error can cascade into a nightmare. I once spent an entire afternoon because I had a comma instead of a period in a config file. The error message was about a missing module, not punctuation, so I went down a rabbit hole. You just get tunnel vision after a while. It feels so obvious in hindsight!
5
marydavis
marydavis4d ago
Been there, that's the worst kind of debugging.
3