"Work in a shop that QA's the source code by people who know what they're doing." This would be in addition to User Acceptance Testing.
The first program I submitted in a shop like this was rejected for 38 reasons. Some were shop standards, but many requirements where I thought "I knew better". I didn't. And I've been a much better programmer ever since.