When I was employed as a developer, I was quite obsessive about refactoring my code to the point where I considered it elegant.
Now I run my own company and am the sole developer. So these days I tend to think if my code is well factored, I'm doing it wrong.
It's not quite that simple of course. The lower down the stack a chunk of code lies - the more things that depend it - the more I want it well factored and well tested. But I'm quite comfortable with code high up the stack being scrappy, hacky and untested.
Now I run my own company and am the sole developer. So these days I tend to think if my code is well factored, I'm doing it wrong.
It's not quite that simple of course. The lower down the stack a chunk of code lies - the more things that depend it - the more I want it well factored and well tested. But I'm quite comfortable with code high up the stack being scrappy, hacky and untested.