250
Debugging (lemmy.ml)
submitted 4 months ago by yogthos@lemmy.ml to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] leisesprecher@feddit.org 1 points 4 months ago

And who actually writes tests like that?

I mean, do you think tests do the calculations again? You simply have well defined input and known, static output. That's it.

[-] CanadaPlus@lemmy.sdf.org 2 points 4 months ago* (last edited 4 months ago)

Yeah, you definitely run fixed tests on the whole thing. But when it returns indecipherable garbage, you've got to dive in in more detail, and at that point you're just doing breakpoints and watchpoints and looking at walls of floating point values.

I suppose Strassen's is recursive, so you could tackle it that way, but for other numerical-type things there is no such option.

this post was submitted on 20 Nov 2024
250 points (98.4% liked)

Programmer Humor

34766 readers
420 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS