Re:Building a web app with no framework
by robertoandred on Saturday March 05, 2022 @03:47PM
(#30571700)
Having to refresh the page every time you make a change or open a modal is a terrible user experience.
[ Parent
| on HN ]
Watching widgets/components freeze after an interaction because of a poorly-handled race condition in the JavaScript, dropped or mis-handled/scheduled async requests, and inconsistent cross-component state management isn't any better. It's arguably worse, because now the user has to guess as to whether something is wrong with the application or not and then refresh anyway.
Users don't really know what they want, and I'd wager that most are willing to accept a page refresh if they understood the immense productivity gains that developers like achieve, for a worse "user experience".
> Users don't really know what they want
Users do not care about "immense developer productivity"
Re:Building a web app with no framework
by Uristqwerty on Sunday March 06, 2022 @03:34PM
(#30581001)
You can replace a chunk of innerHTML faster than a full page reload, using a near-trivial piece of vanilla JS.
But a full page reload also clears out memory "leaks", old state accidentally kept around in caches, clinging to DOM nodes discarded long ago, but themselves still referenced by an old copy of a data structure, etc. If you go for a SPA, or even something in between, suddenly being careful about your data structures becomes a major concern to long-term app use, carrying a whole new category of debugging.
https://sr.ht/ is faster than most SPAs I know and it refreshes the page a lot
It's not faster despite being in WiFi
This is a false-dichotomy/straw man. The conversation is about a javascript-heavy approach being overkill. I haven’t seen many arguing for noscript here.
Implementing a form that autosubmits and updates an element takes very little js.
This is trivial with a sprinkling of JavaScript - our pages do update as required after form POSTs, for example.
Re:Building a web app with no framework
by bingo-bongo on Saturday March 05, 2022 @04:25PM
(#30572055)
What makes it a terrible user experience?
Re:Building a web app with no framework
by hackerfromthefu on Saturday March 05, 2022 @08:35PM
(#30574089)
Nonsense :)