this post was submitted on 13 Feb 2025
238 points (99.2% liked)

Programmer Humor

20693 readers
977 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 7 points 1 week ago

Sometimes, when something won't even compile, I have try to compile it a second time - and get the exact same error message(s) - before my brain will accept there is a problem and perhaps begin to see the cause.

Somewhere in my head must be a gremlin who says, "No! It is the compiler that is wrong!"

The same can apply to semantic errors (the code is valid but does not do what it was intended to do) but those take longer to track down. To make the trick work, the debugging output has to be in just the right place in order to print proof of the wrong logic and then do the same on the next run, preferably in under a minute, so that I can begin to see the error.