"Second, because if you write good code chances are that the product you are building will be much better."
If "better" means anything related to user experience, adoption or commercial success I think that correlation is about zero. Even the dumbest idea can be implemented by good code.