While I'm making it better, I'm also adding features and pleasing the users of the software. And despite the state of the code, it ALL works. That's very important.
For me, the key to job happiness is simply to be making things better. For guys like at this article (and my co-worker), it apparently means having everything be perfect from the start. I don't know how people can live like that, since they will always be disappointed.