Your tests are green. The feature works. You've renamed the same helper three times, moved one condition back and forth twice, and now you're staring at a function that does exactly what it should, as if it let you down. The reviewer has been waiting since lunch. You keep going anyway, because somewhere out there is a cleaner version you haven't found yet.
Most engineers who care about their craft know that loop. I think it's worth breaking, and lowering the bar has nothing to do with it. Perfect is the wrong thing to aim at. The target is code your team can read, review and change after you've moved on to the next ticket. I'll cover what Google's review guide says about "perfect", where the polish loop comes from, why a bit of duplication is often the safer call, and a few questions that tell you when to stop.
"There is only better code"
Google's public code review guide has a line worth taping to your monitor: there is no such thing as "perfect" code, only better code (The Standard of Code Review). Reviewers are told to approve a change once it definitely improves the overall health of the code, even if it isn't perfect, and not to make the author polish every tiny piece first. What they should look for is continuous improvement.
Notice who that guidance is written for. It's the reviewer, the person whose whole job is to hold the line on quality. If the gatekeeper isn't asking for perfect, the author doesn't need to either. A change that leaves the code clearly better and merges this afternoon beats a flawless one that sits in your branch until Thursday.
Who the polish is for
Here's a slightly uncomfortable test. On the fourth round of polishing, ask who it's for. Sometimes the honest answer is "the reader": a name was misleading, a branch hid an edge case. Fix those, they matter. Other times the answer is "me". The abstraction feels elegant, you understand its shape, you remember every tradeoff. A codebase is a shared workspace, though. The person who has to live with this code is whoever opens the file in six months, and they don't have your head.
There's a second, less flattering reason the loop runs long. Opening a PR makes the work visible. A reviewer might question the approach, a teammate might spot a simpler path, production might hit the case you missed. Every extra hour of polish pushes that moment back a little. From the outside it looks like discipline. From the inside it's often a way to put off feedback you'll need anyway.
Clever abstractions get expensive
A lot of polish goes into one familiar move: you spot two similar blocks and pull them into a shared helper. Sandi Metz wrote a well-known post on where that tends to lead (The Wrong Abstraction). The helper starts out clean. Then a new requirement almost fits, so someone adds a parameter and an if. Then another one. A few rounds later nobody fully understands the helper and everyone is nervous about touching it. Her rule of thumb: "duplication is far cheaper than the wrong abstraction." When an abstraction has gone wrong, inline it back into each caller, keep only what that caller needs, delete the rest, and extract again once the real shared shape is clear.
Martin Fowler makes a related point in his note on YAGNI (Yagni). Building for a need you're only guessing at comes with a cost of carry: extra complexity that slows down every later change and every debugging session. Fowler is also careful to say YAGNI doesn't apply to effort that makes the software easier to modify, like refactoring or self-testing code. So the useful line runs between polish that makes the next change easier and polish built for a future you're guessing at.
Write it so a reviewer can see the risk
Code that's easy to review has a visible path: what changed, what stayed the same, which behavior the tests pin down, and where you're still unsure. A reviewer shouldn't have to solve a puzzle before they can judge the risk. Google's guide on small changes lists what you get by keeping a change small: it's reviewed faster and more thoroughly, it's less likely to introduce bugs, it's simpler to roll back, and if it gets rejected you've wasted less work. Their rough guide is that 100 lines is usually a reasonable size and 1,000 lines is usually too large (Small CLs).
That's also the best cure for perfectionism I know. A small PR doesn't need to be your masterpiece. It needs to be clear, correct for its scope and honest about what's left. Say it right in the description: "Error handling for the retry case comes in the next PR." You get feedback on the shape before you've polished the details, which is exactly when feedback is cheapest.
So is sloppy fine now?
No. Some code deserves a lot of care: money, auth, data migrations, anything that's painful to undo. Those are the places to slow down, test more and challenge every assumption. The bar stays where it is. You point it at how the next person will read, review and change the code, instead of at how it feels the moment you type the last line.
The small pleasures stay too. Renaming a variable until it reads right, deleting an awkward branch, watching a messy function turn simple: all still worth doing. The skill is noticing when the change has become clear enough to share and solid enough to review, and opening the PR right then.
Ask before your next "one more pass"
- Is this easier to read, or only more satisfying to me?
- Could I explain it to a new teammate in six months without a whiteboard?
- Can the reviewer see the risk without guessing what I meant?
- If the next requirement bends a little differently, will this design help or fight back?
- Does this abstraction earn its place, or would two plain copies be safer for now?
One thing to try this week: open your next PR one polish pass earlier than feels comfortable, and add a line to the description about what you'd still improve. Then see what the review brings back.