About Coding vs. Writing

One thing that I love about writing code... When you've spent hours or days revising code, and you finally get to that place where it's clean, solid, and tight - you know it. And most other coders can tell too. There's no "well I think this is good but it might be crap" lingering in your mind. You're just done. Of course, that doesn't mean you won't come up with a better way to do it later. With regular writing though, I feel like you revise and revise and revise and then you decide at some point that you can't revise anymore. Someone says it's done. But you can't just look at your writing and say, "Oh, that's O(n). We're good."