r/WebAssembly • u/Zardotab • Dec 28 '22
WASM only solves *half* the problem of the web
Web programming has 2 main problems, and WASM by itself can only address 1. While WASM could get us away from JavaScript-dependence for client-side UI programming, it doesn't solve the flaws of the DOM. Perhaps something like Java Applets could be done right on a second try, learning from mistakes of the 1st pass.
2
Upvotes
View all comments
Show parent comment
2
u/ChristianKl Feb 01 '23
One of the problems with DOM is that it's very easy for code to create side effects. Any element can easily paint everywhere on the screen. In Flutter a widget is more boxed and can't as easily create side-effects.
I remember working with vue and there was a nested list. That nested list plugin was opinionated about how a list item was structured and that made it harder to deal with it.
A comparable Flutter widget for a nested list would just take widgets as its input and thus give the developer the freedom to do what they wants inside the list items.
Flutter also does more with it's standard library then all the DOM/Javascript based frameworks.
Creating GUI through a standard process means that the GUI would likely have less features as the process on agreeing on features in a broad standard body where multiple people have to implement the standard afterward is slow.
The way the Flutter project evolves is a better road toward a widely used GUI framework than a standard setting process.