My experience over a long career of fixing bugs is that it just doesn't matter. Comment-free code doesn't tell you why it does what it does. "Well"-commented code devolves into lies over time. Hard bugs are just hard.
What does help is keeping the voodoo out in the first place by reducing the "non-obvious" bits to an absolute minimum. Which of course is isomorphic to saying that "great code has less bugs". Not exactly profound. But notably it has nothing to do with commenting or documentation, per se.
What does help is keeping the voodoo out in the first place by reducing the "non-obvious" bits to an absolute minimum. Which of course is isomorphic to saying that "great code has less bugs". Not exactly profound. But notably it has nothing to do with commenting or documentation, per se.