💾 Archived View for idiomdrottning.org › idempotent captured on 2024-05-10 at 11:19:56. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-03-21)

-=-=-=-=-=-=-

Idempotent switches

One lesson I’ve learned in the past few years is that idempotent is good.

That means a switch you push and it stays pushed even if you push more.

For example, piping things through kramdown is idempotent:

echo "Eating only spiders and leaves"|kramdown|kramdown|kramdown

A li’l bit of wasted electricity but text doesn’t get borked.

Used to be I thought toggles were really practical and nifty, and steppers that looped around like a Pacman stage.

But on the Mudita Pure phone, the idempotent menus were a big problem since the screen didn’t work in the dark. I couldn’t orient myself through stepping all the way up.