DEV Community

Jesse Warden
Jesse Warden

Posted on • Edited on

4

Designing Impossible Situations

JavaScript: "What do we show when we don't know the value in the URL?"
Designer: "That won't happen."
JavaScript: "K."

Later a null pointer happens in an 'impossible situation'. Gnashing of teeth & lol'ing at how this could happen.

Elm: "What do we show when we don't know the value?"
Designer: "That won't happen."
Elm: "K, I'll put 'designer choose not to design this screen'".
Designer: "Hah, if you say so."

Later error screen shows in an impossible situation. Visually & immediately clear what failed.

The compiler is forcing me to have uncomfortable error scenario conversations with my Designer because null pointers/Maybes are now his problem too. As a front-end dev, this is a wonderful tool, man.

... and by wonderful, it's clearly one sided here on me, the developer. The poor Designer has to think through more scenarios, recognize the strange error conditions, and make a judgement call on what we should/should not design for to make progress.

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay