You are viewing a single thread.
View all comments View context
24 points

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

  1. Read all of the words
  2. Believe them
permalink
report
parent
reply
6 points

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!

permalink
report
parent
reply
3 points

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

permalink
report
parent
reply
2 points
*

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” 😂

permalink
report
parent
reply
2 points

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.

permalink
report
parent
reply
7 points

Until you write a compiler error in some deeply templated C++ code, in which case just reading every word takes all day

/s but not too much

permalink
report
parent
reply
10 points
*

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

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.3K

    Monthly active users

  • 1K

    Posts

  • 38K

    Comments