Lurker News
Modern browsers these days are powerful things - almost an operating system in their own right. So I'm asking the community, should everything now be developed as 'web first', or is there still a place for native desktop applications?

Comments (752) 155 threads

Earlier comments
gfxgirl#
It really depends on the app.

A 3d modeling package? Although Clara.io exists most of the time I'm dealing with 100s of megs of data so native wins. Creating a game? Mostly same though I can imagine some limited online game creation tool even the small sample 3D platformer for unity is 3gigs of assets so a game editor native seems to win. Photo editing, when I get home from vacation there's 100gig of photos so native wins for me. Video editing same thing.
On the other hand there are apps I have zero interesting in being native. WhatsApp, Line, Slack, Facebook, Office, Email, Discord, etc. I'm 100% happy with them in a browser tab. Native apps can spy on way more than browser apps (maybe less on Mac). They can install keyloggers, root kits, scan my network, read all or most of my files, use my camera, mic, etc.
I also use 7 machines regularly. Being able to go to any one and access my stuff is way more convenient than whatever minor features a native app would provide.

apatheticonion#
Installable web applications are an incredible concept that have saved my customers and myself countless hours (and money).

The experiences are fantastic. The applications look native to the platform, with coloured title bars and OS specific window decorations.
The performance is not noticeably different than the equivalent native experience. I am taking advantage of multi-threading through web workers, web push notifications (sorry iOS), and the (single) code base is maintainable and easy to work with.
I don't see how a GUI framework like QT or several native applications would make a more effective alternative either aesthetically or financially.
I'd consider it uncontested once installable web applications have deeper system access (filesystem, etc).
The addition of web assembly bindings for direct DOM manipulation and directly importing wasm binaries via a script tag would complete the browser as the most sensible customer facing front-end environment.
RE performance, look at Figma.

nikivi1 reply#
Browsers have one huge problem and that is they override important hotkey space (like cmd+w, cmd+f for searching etc). So native apps will always provide a better experience.
rbinv1 reply#
Google Docs actually hijacks CMD+F.
kroltan1 reply#
And nowadays even websites that don't hijack the shortcut itself are non-"find in page"-able, due to the trick of disposing unused/out-of-view components (which is actually I suspect what Docs is doing, too, but they made their own find so people wouldn't get stuck)
samanator#
Yup you're right, ay least for Google Spreadsheets. GS is a canvas app so what you see is exactly - and only - what is rendered.

Though, I think Google Docs is not a canvas app.

JKCalhoun2 replies#
No internet? No web-app.

I suppose I am increasingly frustrated with the inability to use my computer if it has no internet....

chrismorgan2 replies#
This needn’t be true. You can use a service worker to make the code load when offline, and IndexedDB to store data.

As a trivial example, https://jakearchibald.github.io/svgomg/ (which has no data storage requirements) works just fine offline.
Offline support is a banner feature of the PWA (progressive web apps) movement.

ken1 reply#
I was excited to see how this worked, so I visited the page, clicked around to see what it did, disconnected from my network, and tried opening the page again in a new window. I got the usual browser error page: "You Are Not Connected to the Internet". So I connected to the network, loaded the page, then disconnected from my network, clicked the Demo button, and got: "Couldn't fetch demo SVG".

So by trial and error, I found that I need to load the page before disconnecting, and only use the 1st of the 5 buttons on the side (even "About" requires network connectivity). Then it works offline. Which is pretty cool!
But every native application I have works perfectly offline, and I don't need to do anything special ahead of time, or worry about which parts might not be available. There's a big difference between "some parts may work offline sometimes" and "entire app will definitely work offline always".
From decades of experience, when a "trivial" app struggles with demoing a feature, there's little chance it'll be widely supported among real apps. PWAs have been "any day now!" for 10 years now.

chrismorgan#
Sounds like the service worker didn’t register for you.

The logic that decides whether the browser accepts service workers is a little bit iffy. My vague recollection is that browsers default to something like “when you access the site for the second time, keep the service worker”. (Don’t quote me on that, and if anyone knows better, please correct me.) “Add this to your home screen” functionality will definitely make the service worker go. (That’s mostly for mobile browsers only at this time, though desktop browsers will eventually get it consistently available, as we’ve been promised for… hmm, about 8±2 years, I think.)
Privacy and blocking extensions may block service workers from being registered, too.
If the service worker is loaded, then it loads just fine with no internet connection, and the demo works too. The contribute and about links, being to GitHub, still don’t work.
I first actually discovered this completely by accident: I was offline, and thought “I need to shrink this SVG file, so I’ll open a tab to the SVGOMG URL and that error page will remind me to do it when I reconnect; huh, it loaded, must have a service worker. This is really great.” On later reflection, I realised that it being by Jake Archibald (a big mover in the service worker space) pretty much guaranteed it was going to work offline.

inetknght#
Service workers are an antipattern. I don't want to visit a website and have it install something that runs in the background.

If you, as a website owner, want me to run an application then you should ask for permissions. No ifs, no buts, no ors.

alasdair_1 reply#
>No internet? No web-app.

I've seen lots of tools that spin up a local webserver and then use that to serve the webapp even offline. But then the question becomes is this really a webapp if I have to install a native server?

ZoomZoomZoom#
Truly, that old quote about "computer engineering concerning with solving problems that didn't exist before computers" gets less funny every year.

Load more comments