Hard to break

I keep thinking about some feedback that Cassie received recently.

She had delivered the front-end code for a project at Clearleft, and—this being Cassie we’re talking about—the code was rock solid. The client’s Quality Assurance team came back with the verdict that it was “hard to break.”

Hard to break. I love that. That might be the best summation I’ve heard for describing resilience on the web.

If there’s a corollary to resilient web design, it would be brittle web design. In a piece completely unrelated to web development, Jamais Cascio describes brittle systems:

When something is brittle, it’s susceptible to sudden and catastrophic failure.

That sounds like an inarguably bad thing. So why would anyone end up building something in a brittle way? Jamais Cascio continues:

Things that are brittle look strong, may even be strong, until they hit a breaking point, then everything falls apart.

Ah, there’s the rub! It’s not that brittle sites don’t work. They work just fine …until they don’t.

Brittle systems are solid until they’re not. Brittleness is illusory strength. Things that are brittle are non-resilient, sometimes even anti-resilient — they can make resilience more difficult.

Kilian Valkhof makes the same point when it comes to front-end development. For many, accessibility is an unknown unknown:

When you start out it’s you, notepad and a browser against the world. You open up that notepad, and you type

<div onclick="alert('hello world');">Click me!</div>

You fire up your browser, you click your div and …it works! It just works! Awesome. You open up the devtools. No errors. Well done! Clearly you did a good job. On to the next thing.

At the surface level, there’s no discernable difference between a resilient solution and a brittle one:

For all sorts of reasons, both legitimate and, as always, weird browser legacy reasons, a clickable div will mostly work. Well enough to fool someone starting out anyway.

If everything works, how would they know it kinda doesn’t?

Killian goes on to suggest ways to try to make this kind of hidden brittleness more visible.

Furthermore we could envision a browser that is much stricter when developing.

This something I touched on when I was talking about web performance with Gerry on his podcast:

There’s a disconnect in the process we go through when we’re making something, and then how that thing is experienced when it’s actually on the web, which is dependent on network speeds and processing speeds and stuff.

I spend a lot of time wondering why so many websites are badly built. Sure, there’s a lot can be explained by misaligned priorities. And it could just be an expression of Sturgeon’s Law—90% of websites are crap because 90% of everything is crap. But I’ve also come to realise that even though resilience is the antithesis to brittleness, they both share something in common: they’re invisible.

We have a natural bias towards what’s visible. Being committed to making sure something is beautiful to behold is, in some ways, the easy path to travel. But being committed to making sure something is also hard to break? That takes real dedication.

Have you published a response to this? :

Responses

Scott

With as fast as the industry moves, it’s mind-boggling that many fail to prioritize making things that are hard to break. adactio.com/journal/16910

# Posted by Scott on Sunday, May 24th, 2020 at 4:21pm

2 Likes

# Liked by George Salib® on Monday, May 18th, 2020 at 10:11am

# Liked by Chris Taylor on Monday, May 18th, 2020 at 12:49pm

Previously on this day

2 years ago I wrote Frustration

Applying the principle of least power to tools and technologies.

5 years ago I wrote 100 words 057

Day fifty seven.

11 years ago I wrote Machine tag browsing

Visualising machine tags on Huffduffer.

15 years ago I wrote Shopping list

I made a brief foray into town yesterday to pick up a few items.

16 years ago I wrote That's all I can stand, I can't stands no more

Please excuse me while I have a little grammar rant. In the space of one day I have seen the words "resource" and "author" used as verbs.

16 years ago I wrote When geeks gather

My last post might have given the impression that I’ve been doing nothing but programming lately. While it’s true that I have had some late nights, writing XSL files ‘till four in the morning, I also found the time for some R’nR

17 years ago I wrote Mackerel Fayre

Arr, there be some strange goings on in Brighton, m’lad. They do say there be a ghost ship riding the waves last last night. Arr!