Virtual DOM is pure overhead (2018)
11–20 of 293 posts
Re: Virtual DOM is pure overhead (2018)
#12> It's important to understand that virtual DOM isn't a feature. It's a means to an end, the end being declarative, state-driven UI development.
Declarative, state-driven UI development is a valuable abstraction.
I really hope readers take this to heart, rather than the article title becoming a new meme.
Re: Virtual DOM is pure overhead (2018)
#13Okay, but - why does Rust frontend libraries (like Yew and Seed) use vdom instead of doing whatever Svelte does? Actually, is anyone else doing it the Svelte way?
Re: Virtual DOM is pure overhead (2018)
#14You could also say Python is pure overhead. You can write any Python programme in C, but more efficiently! C is faster, and therefore better. This article avoids the fact that declarative programming has proven to be more pleasant for most people. And React simply is fast enough for most use cases, even though it has a performance penalty compared to Svelte. The virtual DOM is an elegant optimisation that usually wor…
No it doesn't. Second-to-last paragraph:
"It's important to understand that virtual DOM isn't a feature. It's a means to an end, the end being declarative, state-driven UI development. Virtual DOM is valuable because it allows you to build apps without thinking about state transitions, with performance that is generally good enough. That means less buggy code, and more time spent on creative tasks instead of tedious ones."
Re: Virtual DOM is pure overhead (2018)
#15You could also say Python is pure overhead. You can write any Python programme in C, but more efficiently! C is faster, and therefore better. This article avoids the fact that declarative programming has proven to be more pleasant for most people. And React simply is fast enough for most use cases, even though it has a performance penalty compared to Svelte. The virtual DOM is an elegant optimisation that usually wor…
> This article avoids the fact that declarative programming has proven to be more pleasant for most people. No it doesn't. Second-to-last paragraph: "It's important to understand that virtual DOM isn't a feature. It's a means to an end, the end being declarative, state-driven UI development. Virtual DOM is valuable because it allows you to build apps without thinking about state transitions, with performance that is…
Re: Virtual DOM is pure overhead (2018)
#16Re: Virtual DOM is pure overhead (2018)
#17For 95% of apps, Svelte's custom syntax is pure cognitive overhead making little difference to the performance of the app.
Re: Virtual DOM is pure overhead (2018)
#18There might be other good reasons to use a VDOM (including cases like using the DOM in a web worker). But I don't think performance is one of them.
Re: Virtual DOM is pure overhead (2018)
#19I think that many decisions, like creating a virtual DOM, make a lot of sense in isolation. But, if you look at the complete ecosystem, no sane human being would have ever designed anything like that.
Maybe, the Virtual DOM is pure overhead if you look at the complete system, but:
1. It was reasonable at the time 2. Some other patch to the Web Ecosystem will fix this
The more systems are interconnected, the more difficult is to change anything radically and only incremental changes are possible.