News for hackers. Stuff that matters.
Re:Vue 3.0 Updates [slides] by TekMol on Saturday November 17, 2018 @08:06AM (#18475375)
When the user triggers a change of the underlying data, I do a roundtrip to the server and re-render the current page. I keep the time needed to do so under a second. My users regularely express how WOWed they are by the snappyness of my sites.

I guess what other sites save on re-rendering html, they lose multiple times on bloated code.

Re:Vue 3.0 Updates [slides] by j_jochem on Saturday November 17, 2018 @09:07AM (#18475569)
„Under a second“ might be ok for websites, but doesn’t cut the mustard for web applications. People expect highly dynamic user interfaces which react almost instantaneously.
Re:Vue 3.0 Updates [slides] by TekMol on Saturday November 17, 2018 @12:08PM (#18476335)
If all websites would react within a second to user actions, this would be heaven. But the reality is different:

https://news.ycombinator.com/item?id=18476247

While 30s is off the chart, I see bloat that needs multiple seconds everywhere. The new Reddit, AirBnB, the various Google tools etc etc.

Re:Vue 3.0 Updates [slides] by Illniyar on Saturday November 17, 2018 @09:12AM (#18475586)
That literally means that you aren't doing SPAs. If you aren't doing SPA then yes using React or Vue is rather a waste.

However the majority of sites these days use some form of SPAs.

Also under a second is a very low bar to strive to. a fast round trip to the server is 100ms. A reasonable one is somewhere around 300ms. Displaying effects to changes is often under a millisecond in SPAs and is basically impossible to reach in Multi page applications.

Re:Vue 3.0 Updates [slides] by gbuk2013 on Saturday November 17, 2018 @04:47PM (#18477546)
> If you aren't doing SPA then yes using React or Vue is rather a waste.

I disagree, based on my experience of writing a reasonably complex non-SPA application which very much benefits from Vue.

I also think the fact that Vue Router ships as a separate app further suggests SPA is just one use case.

Re:Vue 3.0 Updates [slides] by GordonS on Saturday November 17, 2018 @09:49AM (#18475725)
> However the majority of sites these days use some form of SPAs

Do you have a reference for that claim? I very much doubt you are correct, but I'd be interested in seeing some stats either way, if they exist.

Re:Vue 3.0 Updates [slides] by halfjoking on Sunday November 18, 2018 @12:30AM (#18479001)
The claim might be true among YC companies or even startups... but the majority of websites by far don't use React/Vue: https://w3techs.com/technologies/history_overview/javascript...

I'm not saying that React/Vue aren't important and drastically changing what's thought of as best-practices in web development... but just because everyone on HN uses a front-end framework for their websites doesn't mean "all websites" do it.

Re:Vue 3.0 Updates [slides] by GordonS on Sunday November 18, 2018 @03:30PM (#18482362)
Thanks, these are exactly the kind of numbers I was looking for!