Try Something Crazy

As you find bugs in your program through manual testing, you can find and fix the problems in your code and then run the program again to verify that your changes fixed the bug. Sometimes you will make a change, run your program, and find nothing different, even though your change should have fixed the bug. You then go back to your code and make some other changes, and you run the program again. Your changes still don’t seem to have any effect. This situation has happened to me several times, and it can be frustrating. I recommend doing something crazy. Delete the entire file (after creating a backup), or write some code that you know will cause an error. Then run your program again. If your latest, crazy changes seem to have ...

Get Learning to Program now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.