Craft over Art
Tags: programming
Published: 2023-12-21 12:46:57

---
title: Craft over Art
published: true
date: 2023-12-21 09:00:44 UTC
tags: programming
canonical_url: https://www.codecraftr.nl/p/craft-over-art
cover_image: https://images.unsplash.com/photo-1497219055242-93359eeed651
---

What is code to you? Is it a tool? A way to make your thoughts executable? Something beautiful perhaps?

Over the years, I've noticed that not all programmers look at code the same way. Some see it as a means to an end - a way to solve a problem. Others, like me, think code also holds aesthetic value. I can appreciate elegant code and find it beautiful.

This raises the question, which perspective is right?

I don't think either is correct. We're probably best off somewhere in the middle. I've seen code written purely to get a job done. It did, but nobody was able to work with it after. I've also seen people gold-plate solutions, endlessly polishing their solution while spending precious time and money.

Ultimately, the code we write professionally should always add value - be useful. If we can make it beautiful along the way, that's great, but it's not a necessity. Constraints such as time, money, urgency, and longevity of the solution all influence whether we should invest time in improving code. It's a [tradeoff](https://www.codecraftr.nl/i/137030156/towards-trade-offs).

We can have different views on what good code looks like. We might have different takes on "good enough." However, we can develop this judgment and make the tradeoff more deliberate. Kent Beck's excellent book [Tidy First](https://www.goodreads.com/book/show/171691901-tidy-first) explains how to make this tradeoff and is a great resource to improve this skill.

As for me, I used to be on the "art" side of the spectrum. I could spend ages going back and forth until things were "just right." Part of the reason might be that I didn't start programming to make my life easier. I never wrote scripts to solve my problems. I started my programming days at university, where much of what we learned was abstract and felt far removed from solving practical problems.

I envy the pragmatic ones. Those who've developed an appreciation for programming because of the incredible problem-solving potential. This realization gradually dawned on me, but only after years of modeling and solving problems without value. Unfortunately, I had to light my own fire instead of it being set ablaze in a sudden epiphany of the limitless potential of software.

These days, I try to consciously nudge myself towards the middle of the spectrum by posing myself questions like:

- How much value will this bring?

- Could I spend my time better?

- Is this good enough?

It helps me keep effort proportional to the payoffs.

If you're on the opposite end of the spectrum, questions such as these might help:

- Is this understandable for others?

- Could we continue working on this with reasonable effort?

- What would improve this the most at what effort?

We might not be able to change our modus operandi, but we can always improve the result with some awareness.

The book [Apprenticeship Patterns](https://www.goodreads.com/book/show/5608045-apprenticeship-patterns) has a chapter called _Craft over Art_, which inspired the title of this post. One sentence left a lasting impression on me. Hopefully, it will do so for you, too.

> Code can be beautiful, but must always be useful

Thanks for reading CodeCraftr! Subscribe for free to receive new posts and support my work.

<form>
<input type="email" name="email" placeholder="Type your email…" tabindex="-1"><input type="submit" value="Subscribe"><div>
<div></div>
<div></div>
</div>
</form>