News for hackers. Stuff that matters.
Re:Modern Javascript: Everything you missed over the last 10... by kaba0 on Sunday May 16, 2021 @04:14AM (#27172074)
How is the vdom novel? Any retention mode GUI does that, hell the DOM itself does that. It’s only novel in that they reimplemented it in “user-land”, because of the performance shortcoming of the DOM.
Re:Modern Javascript: Everything you missed over the last 10... by antris on Sunday May 16, 2021 @06:38AM (#27172691)
It was novel because you couldn't refresh the whole DOM based on your application state without user experience suffering, before VDOM diffing came along.
Re:Modern Javascript: Everything you missed over the last 10... by randompwd on Sunday May 16, 2021 @06:56AM (#27172779)
And they still had to execute the DOM operations anyway so I feel scepticism of React was warranted.

When the complex reality of JS applications was reached in React, React shortcoming became more and more apparent.

There's no free lunch.

The easier to mentally digest appeal of 'redraw the whole thing every-time'* was fantastic but performance was always going to take a massive hit past an easily reached point.

* The difference this time was the diff engine was going to be smarter than before but it was not good enough.