📢
32

Watched a friend's Python script fail silently for 2 hours because he forgot a single comma in his SQL query

That moment when he finally spotted the missing comma between column names convinced me to always pipe my database queries through a linter first (I mean, I was skeptical before, but now I run one every time), has anyone else had a dumb syntax error eat up their debugging time like that?
2 comments

Log in to join the discussion

Log In
2 Comments
johnh82
johnh821mo ago
Wait, two HOURS? That's brutal. I would have lost my mind way before that. One missing comma and the whole script just sits there doing nothing, not even a warning? That's the worst kind of bug. It's like the computer is silently laughing at you. I've definitely had similar moments where I spent a whole afternoon tracking down a stray semicolon or a missing quote in a config file. Linting is a lifesaver now, for sure.
4
roseb62
roseb621mo ago
Feel you on that @johnh82, missing commas are pure evil.
4