The solution: As soon as you start doing any juicy Apex and VisualForce code for an object, replace all the workflows and validation rules for that object with Apex classes.
Along with all the test code you'll have to write, can be a major undertaking.