Hacker News new | ask | show | jobs
by 0942v8653 3908 days ago
> web-apps as desktop-apps is probably the future

Can you expand on this? I'm interested in your viewpoint because the general consensus on HN seems to be that webapps are better off as webapps and desktop apps are better off as desktop apps—being in the browser seems to be good enough for most webapps, and when packaging something as a desktop app there are little quirks that mess it up.

2 comments

As giancarlostoro mentioned, it's mostly about the web ecosystem; web apps have an amazing number of opensource projects to take advantage of. I see a huge benefit from being cross-platform (windows/osx/linux/android/ios/even blackberry) and only having to develop and maintain one ui. Some examples I can think of are Spotify, Atom, Thunderbird. Web technologies are also being standardized more than many desktop technologies have been; - HTML5 (<video>, <canvas>, <template>) - CSS (styling) - WebRTC (peer-to-peer communication) - WebGL (3d) - Local Storage (local persistent storage) - Web Workers (threading) - Device APIs (geolocation, orientation, camera, other sensors)

I don't mean throw your website behind a mini-browser and call it desktop app, but if you design a desktop application with web technologies there are some very interesting combinations.

I also think the biggest gains come from realizing this is literally just the ui. The desktop application doesn't have to be written in javascript, you can still write your application logic in c++, and all you have to do is expose an endpoint and talk over localhost!

Web apps not in the normal sense. You get to design a desktop application that takes advantage of web technologies, but gives you full native access with projects like Electron and NW.js so it's really native apps built on top of web technologies, which a browser is pretty native. Instead of having to download Qt or another C++ toolkit and worry about the lincensing, you download a 30MB browser (or however big it is) that is MIT licensed, and comes with Node.js out of the box giving you all of Node without having installed Node to begin with. It's really interesting in my opinion.