Polishing

I’ve noticed a pattern when I write new programming code: I often spend far too much time polishing it up before putting it out into the world.

At some point the changes I make are not really making the code any better. Yet I’ll keep on tweaking things for a good day or two, well after the law of diminishing returns has set in.

I suspect this has less to do with perfectionism than with anxiety. When you put something out into the world, you are ceding control over it.

Sure, you are being neighborly — sharing with the world, helping others, laying a path for what may come next. But you are also being vulnerable, because at that point any errors in what you’ve created become public.

At some point pride of workmanship veers over into a neurotic tendency. I wonder how many other computer programmers suffer from the same neurosis.

One thought on “Polishing”

  1. Sometimes code takes on a life of it’s own. Where I’m at now, I frequently have to go in and deal with code written decades ago, often by people who have left the project or retired(!). When starting on a project in unfamiliar territory, I now budget 1/2 to 2/3rds of the time to reverse engineering the existing code.

    Even research code occasionally sticks around far longer than you might expect. Time invested now cleaning up formatting, adding useful comments, making names consistent etc. can pay off handsomely in the future.

Leave a Reply

Your email address will not be published. Required fields are marked *