3 ms·
What would you expect web development to be like? I mean, holding static the requirements that the resultant DOM has to: 1. reflow when resized (unlike a PDF);
by derefr 10y ago
What would you expect web development to be like? I mean, holding static the requirements that the resultant DOM has to:
1. reflow when resized (unlike a PDF);
2. work with screen-readers (unlike naive custom rendering engines in games et al);
3. work with accessibility-enabling UA stylesheets (unlike native UI toolkits);
4. be printable without a separately-authored for-print version;
5. if stateful, uses idiomatic HTTP request/response cycles that enable network-level HTTP caching;
5. if a web-app, talks to a simple mostly-stateless HTTP API that can also be consumed unchanged by API client libraries.
There is a reason that Dreamweaver and Publisher are separate apps; and there is a reason Rails/Phoenix/etc. don't support server-side stateful controls like Seaside or the IBM 3270 terminal protocol do. The web is its own thing, and as long as the web is the thing we're targeting, the authoring tools we have are likely about as good as we're gonna get.
(Unless, that is, you can teach your devs to think in terms of distributed actor systems, where all your Javascript code assumes any actor could be remote like in an Erlang system. Then we could have our UI builders and transparently server-ize them too. But would anyone put up with it?)
- candiodari 10y agoHow about the paradigm that was in use for, oh, 3-4 decades, before the web ? The general idea: void OnPaint(PaintCommands p, Rect limitToRect) You can finally sort-of do this, with RequestAnimationFrame and Canvas maximized, and it is indeed way faster than HTML, at least, on my desktop. It resizes if that's what you do inside of it. For games this is pretty much mandatory. It still sucks in many ways though. More could be achieved with just directly exposing OnPaint, 2d and 3d versions. Plus various basic things, like copy-paste, don't work. It doesn't satisfy half your demands, I realize that (though windows accessibility can be quite good too, and the web's accessibility sucks badly). But I would argue that having actual complex apps was worth more (compare MS Office to Office 360 or Google Docs, or worse, compare things like Corel Draw or Lucidchart to the Lucidchart web app, or any other HTML5 drawing/charting app). And let's just not talk about Desktop Games versus either web games or even phone games. It's depressing.
- majewsky 10y agoHave fun fulfilling any sort of accessibility requirements with this.