-- Leo's gemini proxy

-- Connecting to idiomdrottning.org:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini; lang=en

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.

-- Response ended

-- Page fetched on Fri May 17 08:03:41 2024