Beautiful Code Matters

Can you consider yourself a great developer if you aren’t producing quality code?

Paul Singman
Jan 11 · 3 min read

You want to work with great code

Code that blows the hair you have left, straight back.

But I don’t have time to write beautiful code…

But if you find yourself always in that mindset, it’s a sign that you need to invest in yourself and grow. The lack of time you perceive for improving code is the same lazy, procrastination-based excuse you use for not doing most things you want in life.

And at first, yes, it will take you more time to write beautiful code. Slowly but surely however, you’ll start reaping the rewards of your investment, and the thoughtful approach won’t take you much longer than the indiscriminate one.

Doors start to open naturally

Photo by Matthew T Rader on Unsplash

When someone — particularly someone more junior — uses code you wrote, one of two things happens. They either say to themselves:

  1. “My god, this is beautiful. I could never have written this.”
  2. “Oh my god, this is a total mess.”

In the first situation, the person becomes intrinsically motivated to fully understand how the codebase works to replicate it in the future.

In the second situation, someone will do the bare minimum to get a task done. Over time this leads to you as the only person who truly understands the codebase and makes it difficult to move onto other projects.

Whereas for beautiful code-writers, six months later they have people volunteering to take tasks to extend or fix their work. When the time comes for a new project, the process of transitioning off old projects is seamless.

Take inventory of the code around you

Even with this knowledge, you'd be surprised how often developers choose the quick-and-dirty approach, probably with the thought that either the project won’t be used for long, or they’ll be long gone from the team or company before the true cost of the debt-ridden code comes to bear.

While easier in the short-term, they are costing themselves opportunities for growth in the long run.

If after reading this article you look around and see a majority of “ugly” code surrounding you, here are a few suggestions:

  1. Establish or improve code or Pull Request reviews on your team.
  2. Ask or create a ticket for the next sprint to improve or refactor a piece of the codebase.
  3. Resolve for the next task you work on to make the code beautiful.
  4. And lastly, if no one at your company is producing inspiring work, consider finding one that puts more love into it.

In the same way that true runners don’t talk about how fast they could run a marathon, they simply run… And prolific writers don’t tell their friends of all the manuscripts they started but never finished, they just write…

Great programmers don’t wait for some impossible Goldilocks situation to produce beautiful code.

They code it.

Whispering Data

Softly sharing the best kept analytics and productivity secrets

Sign up for Whispering Data

By Whispering Data

Whispering Data is a publication for all the data & productivity secrets you wish you knew years ago! Take a look.

By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our privacy practices.

Check your inbox
Medium sent you an email at to complete your subscription.

Whispering Data

Whispering Data is a Medium publication for all the data & productivity secrets you wish you knew years ago!

Paul Singman

Written by

DevRel @lakeFS. Ex-ML Engineering Lead @Equinox. Whisperer of data and productivity wisdom. Standing on the shoulders of giants.

Whispering Data

Whispering Data is a Medium publication for all the data & productivity secrets you wish you knew years ago!

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store