Skip to content

Comment on Ask HN: Debugging: When depth-first vs. breadth-first?

Comments

It depends.

Do I have a red-hot "it's probably this" idea that I have some confidence in? If so, I probably chase that one in depth first, at least to the point of being able to confirm or disprove.

In the exact scenario you gave, I'd probably do breadth-first, because I don't know if it's OS-specific or not, and the possible causes are different depending on whether it's Linux-only or not.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.