basically: write some tests, write some docs, add some automated tests, checkin often, be sensible and try not to cut corners.
how about: code like you are going to have to remove 2 features and add 3 new features to your code in 6 months time without the place burning down.