Junilu Lacar wrote:Basically, do Test-Driven Development. In the five years that I've been doing TDD, I don't think I've had to use a debugger to step through code more than a handful of times, literally.
surlac surlacovich wrote:
Is there any good tutorial on how to write tests well in the Internet?
Jesper de Jong wrote:
4. You need evidence.
When you have a theory about why a bug is occurring, you need to find a way to prove that your theory is correct.
John Vorwald wrote:I will mention that I've been programming for more than 30 yrs, and recently had a bug I never saw before, and had a HARD time isolating the bug (which was an unexpected recursive call through toString members). It took a few days to identify what part of the code was even associated with the bug.
Junilu Lacar wrote:Was there anything that could have been done in the first place to avoid the bug?
sunglasses are a type of coolness prosthetic. Check out the sunglasses on this tiny ad:
Free, earth friendly heat - from the CodeRanch trailbosshttps://www.kickstarter.com/projects/paulwheaton/free-heat