Testing for problems is one way to not get burned by bad code, but the best way to avoid being burned is to not write bad code in the first place.
Hint: it's bad to globally modify classes. You should keep your modifications scoped to the smallest part of your program possible. (This is also why we stopped using global variables.)
Hint: it's bad to globally modify classes. You should keep your modifications scoped to the smallest part of your program possible. (This is also why we stopped using global variables.)