The problem with this is that there will always be some sort of disadvantage HTML5/hybrid/etc apps have over real native apps. Things like interaction, calendar integration, 3D graphics, etc, etc never work as well as they do as for native apps. In addition, if they do work on a technical level, Apple or Google may add an API tomorrow that either breaks, or you'll have to wait on the supplier of your HTML5 magic framework to add support, etc. If you want high quality, responsive UIs and apps, native is the way to go.
For a simple app, I think this is a good idea - going to play around with it for some simple apps.
You're assuming that choosing HTML as a format forces you to use all the associated web-platform goop to render it.
In the end, HTML is just a standard for defining view element hierarchies; CSS is just a standard for specifying declarative layout constraints on those element hierarchies; and JavaScript is (supposed to be) just a standard for specifying how interactions with those views are bound to your view-controller. (The view-controller in a browser originally being an NPAPI
The problem here is backwards compatiblity. As your HTML file evolves, you will want to restructure it. CSS only takes you that far, at some point you need to adjust your HTML structure.
And then you have the problem that most clients will break with the new HTML structure. In contrast, a separately designed JSON or XML structure (if you follow some simply sanity rules) can be kept backwards compatible for a long time.
I totally understand where you're coming from. Here's my rationale: Most mobile devices and future devices will already use JSON as main method of data transmission.
And I'm trying to build something that's optimized for the future devices, and when you're building something from scratch you have freedom to make a choice, and I think JSON makes a lot of sense going forward, since this is just the beginning of this project. Hope this makes sense!
I've thought of making a Native renderer for some subset of HTML like Google AMP that would work on both Android and iOS. That way all existing web frameworks could generate native apps. But you'd have to do something like this to ensure that you're not breaking Apples rule of not making your own browser engine.
Yes, at surface it looks like re-inventing the web/html, but to use HTML for defining app you would need to add all the native elements as HTML tags to the vocabulary and that would be a lot. HTML was made to make hypertext with things which were imagined in early 90s, NAML (native app markup language) 25 yrs later should support all the bells and whistles we expect from native app UX 25 years later. I would say attempts to reuse/extend HTML for native app UX definition (Titanium, React Native etc) are more terrible hacks than creating new clean room markup language as here is done.
Comments (176) 62 threads
Show all comments
Showing thread 3 of 62
And then you could add scripting...
For a simple app, I think this is a good idea - going to play around with it for some simple apps.
In the end, HTML is just a standard for defining view element hierarchies; CSS is just a standard for specifying declarative layout constraints on those element hierarchies; and JavaScript is (supposed to be) just a standard for specifying how interactions with those views are bound to your view-controller. (The view-controller in a browser originally being an NPAPI
And then you have the problem that most clients will break with the new HTML structure.
In contrast, a separately designed JSON or XML structure (if you follow some simply sanity rules) can be kept backwards compatible for a long time.
And I'm trying to build something that's optimized for the future devices, and when you're building something from scratch you have freedom to make a choice, and I think JSON makes a lot of sense going forward, since this is just the beginning of this project.
Hope this makes sense!
Continue this thread — 4 replies
I did: https://jasonette.github.io/documentation/actions/
I've thought of making a Native renderer for some subset of HTML like Google AMP that would work on both Android and iOS. That way all existing web frameworks could generate native apps.
But you'd have to do something like this to ensure that you're not breaking Apples rule of not making your own browser engine.