I have been troubleshooting this script for weeks and finally found it was trying to divide by zero.

2 points

Just ship it with debug flags so your program always generates a stack trace to the user!

permalink
report
reply
1 point

would it help if I returned -2147483648?

permalink
report
reply
0 points

Makes me think of devs who debug with print statements instead of a debugger and breakpoints.

permalink
report
reply
4 points

Well, Kernighan himself said “The most effective debugging tool is still careful thought, coupled with judiciously placed print statements.”

If it was good enough for him…

permalink
report
parent
reply
3 points

/me glances sideways at codebase

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

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.

Community stats

  • 5.2K

    Monthly active users

  • 1.5K

    Posts

  • 35K

    Comments