3 ms·
I think flutter puts a nail in the coffin with its semi-declarative syntax. While you're technically programming using an imperative language, they've somehow
by devxpy 6y ago
I think flutter puts a nail in the coffin with its semi-declarative syntax.
While you're technically programming using an imperative language, they've somehow managed to make the syntax close enough to a declarative one that it isn't just a soup of bare object surgery (like tkinter or java swing).
They also, really went the extra mile to NOT have to do tree diffing[1], by making Widgets immutable, while still having a "detached" State associated with them.
And this is eerily close to the JSON-is-HTML syntax the author is proposing. A replication of flutter's strategy in pure JS is defininitely worth exploring.
[1] https://flutter.dev/docs/resources/inside-flutter#linear-reconciliation https://flutter.dev/docs/resources/inside-flutter#linear-rec...