Something tells me this isn't going to be the next standard in web apps.
But more broadly, JavaScript has already achieved your vision :)
Core idea is to start from a human-authored formal domain model (sample models: https://github.com/cjheath/activefacts-examples/blob/master/... ) and generate:
* Database schemas - warehouse, OLAP, and (planned) the ETL script between them. * Application models (for ORM etc) - the rails one is implemented. * Code generation for serialization / deserialization from the shared domain model. * (planned) automatic query extraction from type-safe templates (you write your template in terms of the domain model, and it gets automatically compiled into a set of database queries which supply the data it needs).
It's hard to learn, which is a hefty up-front price to pay, but it neatly avoids a ton of work 12+ months down the track.
I'm not sure the DOM is the problem.
I suppose it's more that DOM+CSS has only recently really started to have broad support for more UI-oriented layout. Things like "make these N boxes all the same width, even if N changes" :)
Maybe I like text more than the average user, though.
Looking at my current list of open apps on this machine, it's a bit of a mixed bag:
- iMessage (native)
- Chrome
- iTerm2 (native)
- Fusion 360 (uhhh something weird, dunno)
- Spotify (Electron)
- XCode (native)
- Emacs (native-ish, maybe GTK?)
- Thunderbird (native-ish, I think it's still laid out with XUL)
- Slack (Electron)
- Keybase (Electron)
One thing to note: most of the time I am in the city, but have a second home in a rural area. When I'm out there on a spotty tethered connection, all of the above Electron apps have to get closed because they lose their minds when there's a spotty connection. Slack in particular likes to steal focus/pop up over everything when it is in a loop trying to reconnect. Spotify gets into a weird state where the UI gets unresponsive. Keybase doesn't really complain much.
(And I wish Chrome used those native Mac UI APIs as well as Mitsuharu Emacs does.)