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
ridiculous_fish1 reply#
I will come at this from a different, philosophical perspective:

Web apps come from a tradition of engaging the user. This means (first order) to keep people using the app, often with user-hostile strategies: distraction, introducing friction, etc.
Native desktop apps come from a tradition of empowering the user. This means enabling the user to accomplish something faster, or with much higher quality. If your app distracts you or slows you down, it sucks. "Bicycle for the mind:" the bicycle is a pure tool of the rider.
The big idea of desktop apps - heck, of user operating systems at all - is that users can bring their knowledge from one app to another. But web apps don't participate in this ecosystem: they erode it. I try a basic task (say, Undo), and it doesn't work, because web apps are bad at Undo, and so I am less likely to try Undo again in any app.
A missing piece is a force establishing and evolving UI conventions. It is absurd that my desktop feels mostly like it did in 1984. Apple is trying new stuff, but focusing on iPad (e.g. cursors); we'll have to see if they're right about it.

sbergot4 replies#
What a perfect HN reply. Webapp bad. Native good. No justification. Just a bunch of generalizations.

Gmail empowers me. Wikipedia empowers me. Github empowers me.
Of course native application are important. You don't need to rely on those moralistic justifications.

xeromal#
hahahaha. It's nice to see there's still reasonable people here. Not all of us have the mental fortitude to "empower" our lives.
saagarjha#
You may not be aware of this, but the person you replied to has worked for years on a native UI toolkit. And they provide justification, too: skills don’t transfer between websites as readily as they do between apps. And while I wouldn’t associate we applications are somehow morally inferior, the fact is that many of today’s issues with increasing friction to drive engagement originated on the web and are easy to perpetuate on the web.
openfuture#
Worst thing that ever happened to HN was self-awareness, now your comment is worse than if it had just focused on what he was saying rather than where he said it and my comment is also worse because I included this paragraph. We should probably ban mentioning that this is HN on HN.

He said something like "OS apps have the quality of being windows, you can open different windows into the same data" (okay he literally said "bringing knowledge from one app to another" but it can be re-framed as bringing different apps to the same knowledge - which I argue is more characteristic of the "local experience").
Your "refutation" was to list a few web apps that are considered useful.
A more sane way to refute his argument is to talk about open APIs and how you can bring your data into different contexts using these tools as well as GUI web tools like these things for converting file types, making small adjustments to PDFs, GSuite or other tools.
However that refutation falls on its face when you want the window quality; i.e. looking at the same data with different perspectives. The reason is that the computers running these web systems are foreign and disjoint so you are dealing with a distributed system, sometimes you are lucky enough that it was designed to function how you are using it (google suite is this to some extent), however most of the time you have to bring your data to them to use these utilities and then things float out of sync as you move between tools and your Downloads folder fills up with intermediate artefacts.
We are moving back to the local system, and Electron (and those browser APIs for local storage and persistence) are steps in the conversion process. Eventually we will abandon browsers (read: Chrome) altogether in favor of "package management"; something like nix-shell (except secure) has a much more user-friendly social contract while being pretty much the same UI as a browser (but still much much much worse UX). That's where we will end up (some evidence: NLNet is funding the nix-packaging of all the projects they support).

gindely#
> What a perfect HN reply. ... No justification.

I disagree, therefore the stuff you wrote didn't exist. I mean, don't you think it's a little rude? Think first, engage keyboard later.

bhauer5 replies#
I prefer well-designed desktop applications to web applications for most things that don't naturally involve the web:

* Email clients (I use Thunderbird)
* Office suites
* Music and media players
* Maps
* Information managers (e.g., password managers)
* Development tools
* Personal productivity tools (e.g., to-do lists)
* Games
As Windows starts on-boarding their unified Electron model (I can't recall what they have named this), I suspect we'll see more lightweight Electron desktop apps. But for the record, I like purpose built, old-fashioned desktop applications. I prefer traditional desktop applications because:
* Traditional applications economize on display real-estate in ways that modern web apps rarely do. The traditional desktop application uses compact controls, very modest spacing, and high information density. While I have multiple monitors, I don't like the idea of wasting an entire monitor for one application at a time.
* Standard user interface elements. Although sadly falling out of favor, many desktop applications retain traditional proven high-productivity user interface elements such as drop-down menus, context menus, hotkeys, and other shortcuts.
* Depth of configuration. Traditional desktop apps tended to avoid the whittling of functionality and customization found in mobile and web apps. Many can be customized extensively to adapt to the tastes and needs of the user.
Bottom-line: Yes, for some users and use-cases, it still makes sense to make desktop apps. It may be a "long-tail" target at this point, but there's still a market.

pretendscholar1 reply#
What is your maps desktop application?
bhauer#
I just use Maps that ships with Windows.
WilliamEdward4 replies#
Email doesn't naturally involve the web? What?
rpeden#
Email over ARPANET and the internet predates the web by a couple of decades.

The way we use email hasn't really changed that much since the 70s.

yliu#
Ray Tomlinson's design for email came in the 70s. RFC 788 (SMTP) was published in 1981.

Email predates the Web, and, imo, has been made much worse by all the Web-adjacent features shoved into it.

PNWChris1 reply#
I believe they’re referring to the web as port 80/443 http(s) traffic. It’s the old World Wide Web vs internet distinction, if you will.

Email really is just a protocol for message sending, and it lives on it’s own port with its own server. If you have an email client and access to an email server (POP/SMTP/however), you can use email over the internet but without the “web”.
Basically, the web email client ought not be the only email client.

WilliamEdward3 replies#
It was the ambiguity of the word 'web' that tripped me up. You still need a network of computers for email to be useful.

Continue this thread — 3 replies

goatlover#
Nope, different protocols. You don't need web browsers for email, and the email clients that run in web browsers are using mail servers to send and receive.

If the web didn't exist, which it didn't prior to 1991, email would still work fine. There just wouldn't be any web-based email clients.

kick2 replies#
Thunderbird isn't a native app, for the record. It's a web application similar to an Electron application, but with extra steps.
monocasa1 reply#
Eh. XUL isn't really a web technology the same way as Electron.
kick3 replies#
It's not XUL anymore, actually, as far as I know. That's why it ripped out support for XUL addons.

Continue this thread — 3 replies

offmycloud1 reply#
Last time I looked, Thunderbird was about:

    - 1/3 C/C++
    - 1/3 Javascript
    - 1/3 everything else (XML, CSS, etc) known to humanity
kick#
I'll grant you that an Electron app is generally 90% C++ (ships a web browser), but I'm not sure if that makes Thunderbird (ships a web browser) any better.
Droobfest#
This is a big part of why I still use MacOS. The mail, notes and reminder apps are simple, easy, fast and can be used with third party providers like Fastmail. The Windows apps are fairly sluggish by comparison. I prefer most native MacOS apps in general, Finder/Explorer is a big exception though.
coronadisaster1 reply#
> Thunderbird

The search is not very good on Thunderbird...

RachelF#
it's still better than Outlook!
fbelzile5 replies#
I make a living developing software only available on Windows and macOS. That said, if I didn't need to interact so much with the operating system, I'd be making a web app. It all depends on what you want to make though. Video editing software? Native app. CRUD app? Web app.

You may also want to consider pricing implications of both. Desktop software can usually be sold for a higher up front cost, but it's tough sell to make it subscription based. SaaS would make your life a lot easier if you have a webapp. People are starting to get used to paying monthly for a service anyway.
Pro tip: If you decide to make a native app, don't use Electron. Instead, use the built-in WebBrowser/WKWebView components included in .NET and macOS. Create the UI once using whatever web framework you want, and code the main app logic in C#/Swift. Although the WebBrowser control kind of sucks right now, Microsoft is planning on releasing WebBrowser2 which will use Blink. I think they might also have it where the libraries are shared between all apps using it, to further reduce bloat. The old WebBrowser component can be configured to use the latest Edge rendering though by adding in some registry keys or adding this meta tag:

dvdhnt#
> Pro tip: If you decide to make a native app, don't use Electron. Instead, use the built-in WebBrowser/WKWebView components included in .NET and macOS. Create the UI once using whatever web framework you want, and code the main app logic in C#/Swift. Although the WebBrowser control kind of sucks right now, Microsoft is planning on releasing WebBrowser2 which will use Blink. I think they might also have it where the libraries are shared between all apps using it, to further reduce bloat. The old WebBrowser component can be configured to use the latest Edge rendering though by adding in some registry keys or adding this meta tag: > > >

Great to know, thank you.

OkGoDoIt3 replies#
I understand the concept of making a native app to include using the native UI platforms. What you described is hardly more native than electron, which is basically a web app at heart.

Or maybe there needs to be a consensus on terms. Do people consider electron apps to be native? I would put them in some weird middle ground, but definitely closer to web technologies than native development.

enos_feedler#
With Electron, it feels more like starting from web and making it behave like a native app, from the standpoint of operating system app handling (task bar, notification). It can also fill a gap left by web for exposing a filesystem and other things that are native to some abstract computer.

Using WKWebView for UI is different in that you are starting from a native app and using web technologies to leverage code sharing and programming model of the user interface (js, css, html).
I think for this view to make sense you have to see web apps and native apps as fundamentally different things, which I believe they are.

arithma#
From a capabilities point of view, they're native. You can access the OS api just like any other native app.

From a developer side, it looks like developing a webapp without the usual limitations of API access, albeit at an extra cost of marshaling or build-complexity.
There really is no reason to think of HTML/CSS/JS as Web only though.

neurostimulant#
The main complain about electron app is due to their bundling of complete web browser runtime, which is over a hundred of MB, not to mention the big memory requirements. By using platform's built-in webview component, your app size will hardly any bigger than the total size of the zipped html+js+css of your app. If you're going to use web stack to develop your desktop app anyway, might as well try using native ui webview first if you don't need any electron-specific feature.
antaviana#
We sell our B2B desktop software as a subscription since 2012 (previously it was freeware).

The key is to make it only available as a subscription (no permanent licenses) and it does not have any cloud component.
We managed not to fall in the trap of making two types of licenses (suscription or permanent) to maximize early revenue (we could affort to wait).
We seek a marriage relationship with our users not a hook up.
This increases the value our users extract knowing it will not go away in the long term and the lifetime value of customers is a lot higher.
We know that some customers will not accept a subscription-only desktop application but in B2B world they are fewer than it might seem.

doteka1 reply#
For a personal project I am currently using this approach and can confirm it works great.

I wrote just enough PyObjC to get myself a trayicon in the Mac menu bar, which shows a popover containing a wkwebview to localhost. Then I have all the app logic in Python, exposed to the webview through a bottle server, and Svelte for the UI. Highly recommended.

CameronNemo1 reply#
Do you distribute Python with your application too then? How well does that work?
fbelzile1 reply#
It sounds like a macOS app, and python is distributed with the OS already. Just watch out for Apple trying to take away scripting language support in the future. There's also an upcoming Python version change in macOS 10.16 to look out for.

Continue this thread — 1 reply

mb_72#
Great to read about someone in a similar situation to me. I work as the developer and maintainer of a niche-market financial / real-estate application. This application has been developed and supported since the late 80s, first being done in Turbo Pascal, then Delphi, and then under my stewardship we moved to C#. I refactored the calculation and report production code into a library, and since that time we've built a Mac version and Web version, all utilising the same 'core' library. This means that for critical calculations and data output we - my business partner, who is the 'domain brains', and I - can do all the hard work on the Windows version (with which we are most familiar and comfortable, and IMO VS on Windows is still miles ahead of VS on Mac), and then 'just' do the GUI work for the other versions.

We did look at doing exactly as you said, i.e. using a web view within Windows and Mac, however I couldn't really get things working well enough at the time (as TBH I am bit of a noob WRT web development, and just pick things up as necessary as we go along).
For our market, there is strong demand for the desktop versions, and this is even with a subscription model; people get access to the most recent major and minor versions of the software as well as phone and email support while under subscription. When their sub runs out they are entitled to minor version updates, but nothing else. My biz partner is very good with people and very knowledgeable in the domain we operate, so this kind of arrangement suits everybody. Oh, and I get to work remote, and have done with him for ~15 years. The current situation really makes one appreciate fortunate arrangements such as this.

zadjii3 replies#
I mean, we built the Windows Terminal as a native application because we didn't want users to have to be saddled with 40MB of a webview/Electron just to boot up a terminal. It might take us longer to make the terminal as feature rich than it would have with JS, but no amount of engineering resources could have optimized out that web footprint. When we think about what the terminal looks like in 5 years, that's what we were thinking about.
bhauer1 reply#
Thank you. As you say, in the long haul, Windows Terminal is considerably better than it would have been thanks to that decision. It feels responsive and lightweight; unlike any Electron app, and that is greatly appreciated by many users, myself included. I look forward to each new version.
sebazzz1 reply#
Didn't they eventually did some crazy optimizations to keep the terminal in VS Code performant?
Cthulhu_#
They still do; for years now I read the patch notes and every time there's a segment dedicated to the terminal with things like font support or sane selection, things that IMO are both basic features and which should be in native terminal emulators already.

also I've never used the VS Code terminal, iterm works better for me. Also because it's its own dedicated app, so I can actually alt-tab to it instead of having to learn whatever shortcut it would be in the editor.

jfkebwjsbx#
I don't use Windows, but thank you for having gone for it.
petilon1 reply#
I am sorry but Windows Terminal is the suckiest Windows app ever and gives me a headache on a daily basis. Try opening multiple instances of this app in overlapping windows, like most developers do. Then fill them with text. Now see if you can tell where one window ends and the next window starts. Because of nearly invisible borders all the windows sort of blend into each other. Worst usability issue ever. This terminal appears to be designed for people who open only one command prompt at a time. Please bring back the old terminal.

Continue this thread — 1 reply

Load more comments