3 ms·
Using HTML/CSS for UI design on the web[0] makes sense in that you don't really have an alternative besides embeds like Flash, Java, etc. But surely it's non-o
by krapp 8y ago
Using HTML/CSS for UI design on the web[0] makes sense in that you don't really have an alternative besides embeds like Flash, Java, etc.
But surely it's non-optimal for native applications that have direct access to the native renderer and GUI systems, or at least to limit them to HTML and CSS and not some more optimal domain specific subset of XML?
[0]assuming one accepts the premise that "web apps" should even be a thing, which I know is controversial on HN to say the least...
- solarkraft 8y agoPure HTML for UI is pretty shit, with Vue/Angular/React it's bearable to develop in (though now huge), but: Everyone knows how to produce "fuck it, it works" results with it. Everything (almost) supports it. It already runs on the web.
- krapp 8y agoThat's a valid excuse for the web, but there's no reason we can't take what works about the HTML/CSS as UI model and make it work better for native applications. Just sticking to the web model because it's familiar is laziness.
- panopticon 8y agoI imagine the intent of something like this is so you can embed things in your app that you've already published online (e.g., support documentation, news posts, etc).
- Pxl_Buzzard 8y agoIn addition to the other responses, when I was developing a game / game engine we chose Awesomium to render the UI to improve modding capabilities. A lot more people are willing to manipulate a website than some other scripting language. Planetary Annihilation had the same thought as well, if you want to see results on a published title.
- sounds 8y agoThere's a balance to be found by each app developer between roll-your-own and just-use-a-web-browser. There's room in there for Ultralight, Awesomium, Chromium, Dear Imgui, SDL, Cairo, WPF, even GDI+. That's basically because (I think) there's still a lot of effort being put into recreating UIs - especially for apps, games, and embedded. (In embedded, as in, embedded systems running linux or VxWorks or something, the story is less well known, but it's the exact same balance and set of choices.)