javadefects

best practices in defect Fixing?


When fixing defects in new code what are the best strategies to use? cause as I figured out defect-fixing improves my coding standards and my understanding about that language and technology. I want to optimize thing gaining.


Solution

  • TDD says that first you should implement test(s) that reproduce the problem. Then fix the bug and run tests again. If all tests pass you are done. Otherwise continue fixing.