4 ms·
Only ever having used MFC and Swing, this seems odd to me. A diff of the entire DOM on every state change? You never see anything like that in native toolkits.
by rayiner 8y ago
Only ever having used MFC and Swing, this seems odd to me. A diff of the entire DOM on every state change? You never see anything like that in native toolkits. ELI5: What problem is that solving?
- adamnemecek 8y agoMakes programming somewhat easier and also batches layouts.
- Tehdasi 8y agoThe problem it's solving is the DOM being unsuited to writing the kind of applications that MFC and Swing are used for writing. (which, for the web, is a SPA)
- andrekandre 8y agoisn’t this pointing to more of a fundamental problem with how browsers/html/document model are designed/implemented than anything else? html was originally a document format, not an app framework, and i think all of these frameworks (large and small) are just workarounds when what we really need is a fundamental re-imagining of what the browser should/could be. sometimes i wonder if alan kay was right when he said the browser should have been basically just byte-code interpreter[1]... [1] http://www.drdobbs.com/architecture-and-design/interview-with-alan-kay/240003442?pgno=2 http://www.drdobbs.com/architecture-and-design/interview-wit...
- tptacek 8y agoYou write your UI declaratively, in almost straight-line code, and never "update" anything in the UI itself. It's significantly easier to write.
- deleted 8y ago[deleted]