3 ms·
I disagree. He states quite clearly that the “it’s right for me” argument has a flaw. If there are 6 possibilities and you examined 5 before deciding that numbe
by db48x 3y ago
I disagree. He states quite clearly that the “it’s right for me” argument has a flaw. If there are 6 possibilities and you examined 5 before deciding that number 3 was “right for you”, then you cannot actually state that you know that #3 is better than #6.
Then, he points out that printf debugging requires that you recompile and rerun your code every time you add or remove a printf. Pernosco, on the other hand, let's you record your program once and then add printfs to it later. Each time you add a printf, you get a complete list of all the things it would have printed had it been part of your program when you ran it. You don't have to recompile or rerun it.
If your program originally ran for an hour and your new printf would have printed a million lines, Pernosco doesn't make you wait an hour. It simply computes what would have been printed, and does so in a few seconds. It doesn’t even start at the beginning of the program either, or generate all million lines at once. It starts with the lines that will actually be visible in the log window, which could be at any point in the execution. More log lines are computed on the fly as you scroll around.
I think that Pernosco gives you superpowers.
In fact, while it might be rude to tell a golf pro to change their grip, I would argue that you’re not actually a pro unless you’re using Pernosco. (Or a debugger with identical features, if any exist.)