I posted some quick tips in All my recent changes are consistently breaking my webapp - #8 by amyegan
But you should check out Jacob’s recent post for some of the best advice!