5 ms·
There's another story I heard once from Rob Pike about debugging. (And this was many years ago - I hope I get the details right). He said that him and Brian K
by josephg 1y ago
There's another story I heard once from Rob Pike about debugging. (And this was many years ago - I hope I get the details right).
He said that him and Brian K would pair while debugging. As Rob Pike told it, he would often drive the computer, putting in print statements, rerunning the program and so on. Brian Kernighan would stand behind him and quietly just think about the bug and the output the program was generating. Apparently Brian K would often just - after being silent for awhile - say "oh, I think the bug is in this function, on this line" and sure enough, there it was. Apparently it happened so often enough that he thought Brian might have figured out more bugs than Rob did, even without his hands touching the keyboard.
Personally I love a good debugger. But I still think about that from time to time. There's a good chance I should step away from the computer more often and just contemplate it.
- artursapek 1y agosome of my best work as a programmer is done walking my dog or sitting in the forest
- deleted 1y ago[deleted]
- rusk 1y agoIt’s amazing what even the most subtle perturbation in output can tell you about the internal state of the code.
- noisy_boy 1y agowhere you=Brian
- notnullorvoid 1y agoSounds like Rob does use a debugger and it's name is Brian.
- dgb23 1y agoYou might be confusing Brian with Ken?
- josephg 1y agoYeah that sounds right. Thanks for the correction!
- melodyogonna 1y agoI think you're misremembering here, the other party is Ken Thompson not Brian K