News for hackers. Stuff that matters.
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.
Re:Building a web app with no framework by sidlls on Saturday March 05, 2022 @03:55PM (#30571779)
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.
Re:Building a web app with no framework by spoils19 on Saturday March 05, 2022 @08:57PM (#30574240)
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".
Re:Building a web app with no framework by orange8 on Sunday March 06, 2022 @12:58AM (#30575383)
> 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.

Re:Building a web app with no framework by YuukiRey on Saturday March 05, 2022 @04:47PM (#30572236)
https://sr.ht/ is faster than most SPAs I know and it refreshes the page a lot
Re:Building a web app with no framework by gefhfffh on Sunday March 06, 2022 @03:56AM (#30576110)
It's not faster despite being in WiFi
Re:Building a web app with no framework by stepbeek on Sunday March 06, 2022 @04:58AM (#30576361)
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.

Re:Building a web app with no framework by GordonS on Saturday March 05, 2022 @05:09PM (#30572436)
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 :)