Skip to content
Writing
Design
· · 3 min

The industrial design of software

listen to this article from the Wonder Why? podcast
Listen

An iPhone doesn’t need to be switched on for me to appreciate it. There’s something about the curvature, the weight, the relationship between glass and metal that just feels good. I’m not even using the product yet, and somehow I’m already experiencing it.

I’ve been increasingly fascinated by industrial design for this exact reason. How does the physical composition of an object influence how we feel about it?

And more interestingly, how do we manufacture that feeling in software, where the object doesn’t physically exist?

Manufacturing materiality

Software designers have spent years borrowing from the physical world. , , and more recently, Apple’s .

Think about the amount of engineering involved in convincing a piece of glass that there’s another piece of glass inside it. Refraction, highlights, luminance, distortion. All to reproduce qualities that physical glass possesses without any engineering assistance from us.

You see something similar in music production software. Logic Pro doesn’t necessarily need its knobs to resemble physical knobs. A number input could accomplish the same computational task.

But we’re not exclusively engineering for computational efficiency. We’re engineering for human familiarity.

A digital object has no inherent weight, friction, tension or elasticity. If I want any of those qualities, I have to manufacture them mathematically.

The handle is rigid; the material lags.

Physical behaviour is interesting because applying it to the wrong part of an interaction can actually make the experience worse.

Imagine dragging a handle surrounded by an elastic material. Applying a spring to the entire object might produce a beautiful animation, but now the handle is struggling to keep up with your finger.

You’ve made the interaction more animated and less responsive. How ironic.

The solution is to separate the point of manipulation from the material responding to it.

The handle follows the pointer directly. The surrounding material follows a spring.

handle.position = pointer.position;

const force = stiffness * (handle.position - material.position);
const resistance = damping * material.velocity;

material.velocity += (force - resistance) / mass * dt;
material.position += material.velocity * dt;

With appropriate integration steps, that relatively simple relationship can communicate tension, weight and elasticity without compromising the user’s sense of control.

The material is allowed to struggle. The handle isn’t.

Not recommended: Spring on everything
Recommended: Handle follows, material springs
Drag either handle fast, or fling it. One hand moves both; the red dashed ring is your finger, and only on the right does the handle stay under it.

The joy of exaggeration

I don’t necessarily begin building an interaction by imagining its physical equivalent. I usually discover the behaviour through experimentation.

It’s often when I’ve finished something and feel that something is missing that the industrial questions begin.

Does it have enough weight? Does it arrive too abruptly? Should the movement accelerate? Should the material resist me?

But physical accuracy isn’t always the objective. Sometimes the most enjoyable part of software is its ability to disregard physics entirely.

Consider manufacturing resistance at the edge of a draggable surface:

function resistance(distance: number, limit: number) {
  return limit * Math.tanh(distance / limit);
}

Small movements remain relatively direct. Larger movements encounter progressively increasing resistance, approaching a limit without abruptly hitting a wall.

There’s no actual rubber involved. Just a mathematical function producing the sensation of rubber.

Ada OkaforRunning 5 min late
1:1limit 56 pxcardfinger240 px
Drag the card sideways, far past its edge, then let go. The dashed ring is your finger: the card keeps up at first, then falls behind and never crosses the limit.

And if I decide that the material should rebound a little more aggressively than its physical counterpart, absolutely nothing is stopping me.

That’s the beautiful thing about engineering digital materials. We have the familiarity of the physical world without the inconvenience of being bound by it.

Motion has a personality

A spring isn’t just an animation mechanism. Its parameters communicate something about the object itself.

Here are two spring configurations I’ve grown particularly fond of:

const settle = {
  stiffness: 380,
  damping: 34,
  mass: 1,
};

const grab = {
  stiffness: 500,
  damping: 18,
  mass: 0.6,
};

One is calm and controlled, the other considerably more responsive and expressive.

InboxTodayDone
Settle
InboxTodayDone
Grab
InboxTodayDone
Ease-out, 300 ms
Press the button: one press moves all three highlights. The red dashed line is where each should stop; switch to Slow to catch the one that runs past it.

Using the second everywhere simply because it feels more animated would be a rather terrible creative decision.

A navigation highlight doesn’t need the personality of a bouncing toy. A playful draggable object might.

And sometimes a simple ease-out is more appropriate than either.

I think the industrial design of software begins with recognising that motion, much like material, typography or colour, possesses its own vocabulary. Choosing the right mechanism is as much an exercise in taste as it is in engineering.

I’m not interested in making every application resemble the physical world. A book doesn’t always need to look like a book, and a button doesn’t need to pretend it’s manufactured from aluminium.

I’m interested in borrowing just enough from reality to create something that feels familiar, then borrowing from imagination to create something reality couldn’t have produced.

Because the beautiful thing about software is that we get to manufacture the material and invent its physics.

And occasionally, break both.

— Adenekan

Thoughts on this one?

Tell me what it made you think, or where you think I got it wrong.

Still working on the last 10%.0:00pm in london