Re:We Fell Out of Love with Next.js and Back in Love with Ru...
by SkepticalWhale on Saturday May 03, 2025 @08:15PM
(#43883417)
Minimizing state simplifies the codebase but it’s a trade off.
There are times the user experience is just objectively better with more state, and you have to weigh the costs.
If I am filling out a very long form (or even multi-page form) I don’t really want all that state lost if I accidentally refresh the page.
Re:We Fell Out of Love with Next.js and Back in Love with Ru...
by tomnipotent on Saturday May 03, 2025 @06:59PM
(#43883049)
I can remember vastly more instances where I've been frustrated as a user of an app or website by losing state, than remember state.
Anecdotally, it seems like I encounter a lot more web apps these days where refreshing doesn’t reset the state, so it’s just broken unless I dig into dev tools and start clearing out additional browser state, or removing params from the URL.
Knock it off with all the damn state! Did we forget the most important lesson of functional programming; that state is the root of all evil?