News for hackers. Stuff that matters.
Re:What does debugging a program look like? by saagarjha on Monday June 24, 2019 @02:25AM (#20260970)
Again, it doesn’t really matter whether the library actually has a bug in it: you’re just tricking yourself into finding the bug by looking at code that’s not your own. However, from personal experience well-used libraries and tools have more bugs in them than you’d think ;)
Re:What does debugging a program look like? by TeMPOraL on Monday June 24, 2019 @02:38AM (#20261034)
Alternatively, you can just internalize that anything running on your machines is your code. There's no difference between the piece of software you're writing and the library it's calling; you can and should step back and forth between them when debugging. Abstractions are cool, but there's great value in just getting your hands dirty and looking under the hood.
Re:What does debugging a program look like? by saagarjha on Monday June 24, 2019 @03:11AM (#20261188)
I can’t always fix “my” code, then :(
Re:What does debugging a program look like? by kdelok on Monday June 24, 2019 @07:28AM (#20262373)
I'd generally agree with this (bumped up against more gcc, libc and kernel bugs than I'd have liked), but I find that my code has even more bugs than that. :)