This is from a series of articles at Zend (the makers of the PHP engine). The first two portions were very PHP-specific. But this final installment has some pretty general coding advice that seems pretty reasonable. good stuff, I think http://www.zend.com/zend/art/mistake2.php