html, css and js can be used to build beautiful(and useful) ui's (specially with html5 and css3) and lots of people already know them. Though its still way beyond my reach, but how difficult can it be to bring the whole web app thing to desktop apps (we already develop apps on our local servers before hosting them). According to me, its a nice simple idea which will bring a boom in desktop apps, plus given that these apps will already be sharing so much code with web apps, they might be able to offer better connectivity. Why isn't it being done?
|
Adobe already did it with Adobe Air, and Mozilla too with Prism . Google also tried to bridge the gap between desktop and web with Google Gears. But in general, web technologies are not suited for many types of desktop applications, here some reasons why:
|
|||||||||||
|
The framework that comes to mind is Adobe Air. It allows web developers to use Javascript/HTML to develop desktop applications. Javascript/HTML on it's own is not suitable for desktop applications because often times a desktop application will need access to services provided by the operating system, e.g. opening files, launching other applications, etc. Javascript on its own does not allow access to such services so you need something extra and frameworks like Adobe Air provide that extra glue. |
|||
|
There are a couple of ways to do this now. There's the Mozilla Application Framework which is often used by web browsers like Firefox but is also used by, for example, ActiveState's Komodo IDE. There's also Qt, which in Qt Quick has CSS and a Javascript-like language. |
|||
|
IMO, I dont adopt HTML, CSS as a way to layout GUI's becaue there is no compiler I know of for these languages. If I have an error in the code, I have to go look for it myself or I maynot even knowtice it (or go to the HTML site to test it). In c++ I like that it wont let me compile unless the code is correct (except for catching runtime issues). Also I dont believe CSS & HTML play very well together yet, such as using float in CSS - depending on your HTML code & use - the result of float will have different outcomes - a lack of consistancy compared to using absolute positioning in win32 or the great java swing layout managers. |
|||||||||
|
One major reason is that if you didn't want your app to be easily stolen and copied you would have to also create an application that held a WebControl that directly linked to your files packaged up some way. |
|||
|