this post was submitted on 30 Sep 2024
563 points (97.5% liked)

Programmer Humor

19357 readers
49 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 23 points 2 weeks ago (3 children)

I learned early in my software engineering career these two beautiful rules of debugging:

  1. Read all of the words
  2. Believe them
[–] [email protected] 10 points 2 weeks ago* (last edited 2 weeks ago)

Unless you were the one writing the program and its error messages - then check, that you didn't mess up there...

[–] [email protected] 7 points 2 weeks ago (2 children)

Addendum to 2: never believe that what they say is relevant to what's actually happening here. You have a lot of faith that the people writing error messages knew what they were doing!

[–] [email protected] 4 points 2 weeks ago

Having written some error messages in a godforsaken database frontend, an error message only means that something didn't work correctly and may or may not correctly indicate what is actually wrong

[–] [email protected] 2 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

I mean, if the error says "variable foo is not defined" I don't think it's wise to go "I'm pretty sure it's defined, the compiler is just wrong" 😂

[–] firelizzard 3 points 2 weeks ago

I don’t know, have you ever used JavaScript? I’ve run into some really fucking weird bugs. I’ve also spent hours trying to find the source of an error message only to discover the error message was lying and caused by some other error.