One of the primary complaints about Hype is that its HTML / CSS / JS output isn't very clean. I wonder if Google's tool produces better output.
EDIT: Looks like not: https://news.ycombinator.com/item?id=6470640
One of the primary complaints about Hype is that its HTML / CSS / JS output isn't very clean. I wonder if Google's tool produces better output.
EDIT: Looks like not: https://news.ycombinator.com/item?id=6470640
While everything has its tradeoffs, we went with this approach because:
- Our app has a lot of animation and interactivity capabilities not meaningfully expressed through anything but JavaScript. For example, we don't use CSS3 Animations nor transitions because they aren't powerful enough (pausing, synchronization, etc.).
- We have better control over how we express the DOM to the browser. There's plenty of browser bugs or incompatibilities which sometimes require us to on-the-fly change the DOM structure or which properties we are using.
- The user could easily bork the output so it could not be read back in
- No tool will ever produce output that will appease everyone :)
We provide lots of hooks in and outside of the runtime for your own JavaScript and HTML so you can still customize quite a bit.
So it isn't that our output isn't very clean (in fact I'm quite proud of the runtime and how we've been able to add features without increasing bloat); it is that edits are meant to happen from the app itself.
I see that Google's tool also seems to produce rather inscrutable output (see my edit to my original post). This does sound like one of those really hard problems where is pretty much impossible to balance the needs of the machine-modifiability with human-readability.
Thanks again for the reply!
There hasn't been much that's swayed us otherwise -- I think it was the right call.