this post was submitted on 14 Aug 2023
202 points (93.5% liked)
Programmer Humor
31224 readers
70 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Today, I had a weird issue: A program I worked on for hours would compile and do the (test-) output it was supposed to do. But if I'd declare and initialize another variable (unused), it would be stuck in an endless loop.
It would only happen with an initialized variable, not with simply declared variables.
Took me until this evening in my bed to realize that I probably am using another uninitialized variable somewhere in my code and that's the source of this bug.