New answers tagged

2

I wholeheartedly second David Arno's suggestions about failing tests and code reviews. Also, there are often ways to write the code to make it less susceptible to that kind of error in the future. For example, if the error was created by calling a function before its prerequisites were met, you can split your classes differently so that would create a ...


4

There are two techniques that work together to avoid this type of scenario from occurring: Step 1: write a failing test before fixing the bug When the bug has been found, the first thing to do is to write a test that will pass when the bug is fixed and thus it fails whilst the bug still exists. The dev then fixes the bug and in the process makes the test ...


Top 50 recent answers are included