Back in the day
when I was learning to program we were taught that 10% of the work was actually writing the application. The other 90% was making it fool proof. Granted the world continues to make better fools, we should just stop letting them write applications. At that point none of this would be necessary.