Decided to try something different and have zero state in my elm web app. No cookies. API key is passed as a querystring to pages that need it.

Feels cleaner this way. No sessions/logging in all the time. Can just bookmark any page and it just works.


I guess this is just moving the state from the cookies to the bookmarks, which is a user experience loss since most people don't use bookmarks.

OTOH most browser address bars would autocomplete to the full URL with api key anyways.

There's something satisfying with eliminating implicit/hidden app state/configuration. Perhaps you only get this satisfaction when programming in Haskell long enough. The dependency injection people get satisfaction from the complete opposite. Strange folk.

Sign in to participate in the conversation
Functional Café

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!