Comment by tikhonj

Comment by tikhonj a day ago

7 replies

But a wholly non-funny "Invariant Violated" message would be no better. The problem isn't that the message is funny, but that it does not contain the information you need to understand what's going on. The whimsy is just a distraction.

eptcyka a day ago

Do you find that distracting things help you debug shoddy code?

  • tikhonj 21 hours ago

    They don't hurt, and it's fun to come across them. If the funny thing is used in one place, it can be memorable and easier to search for. If it's the equivalent of "error [error]" or whatever, I honestly don't care.

  • arccy a day ago

    if "divide by cucumber" is a unique string in the code base, then yes?

    • wiseowise 21 hours ago

      Right. And how many of those can your brain fit?

      • maccard 20 hours ago

        Doesn’t matter. The important thing is that I can look them up or resolve them easily. Without looking it up can you tell me the difference between HTTP 451 and 510? If not they’re no more useful than I’m a teapot. But I can identify both of those uniquely and figure out where they’re coming from.