Ask HN: Is there still a place for native desktop apps?
524 pointsModern 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 commentsBut aside from my particular specialty, I also prefer any other software I use to be fully native. I'm surprised that's such a controversial thing to ask for these days. All I ask is so precious little:
* I want the software I use to be designed to run on the CPU that I own!
* I want software that doesn't require me to upgrade my laptop every two years because of how inefficient it gets with every iteration.
* I want software that isn't laughably bloated. I think we have a real problem when we don't bat an eye upon seeing the most rudimentary apps requiring 200+ MB of space.
[1] https://developer.mozilla.org/en-US/docs/Web/API/FileSystem
Continue this thread — 2 replies
This interface will not grant you access to the users filesystem. Instead you will have a "virtual drive" within the browser sandbox. If you want to gain access to the users filesystem you need to invoke the user by eg. installing a Chrome extension. The relevant Chrome API can be found here.
The dev who posted it seemed perplexed when people told him the game was 100x bigger than it should be.
Nothing worse than people who mock beginners showing their first work. We were all there, once.
It's clear you've never worked with Electron; nothing about its system-level access has anything to do with HTML5 or related standards.
All of that lives in NodeJS, which offers reasonably low-level APIs for accessing system resources. For cases where that's not enough Node can easily call out to logic written in other languages, either directly through FFI (foreign function interfaces) or by spinning up an independent binary via the shell.
This is the problem with this discourse: the vast majority of the Electron haters are people who have no idea what they're talking about when it comes to the actual thing they're criticizing. It's particularly hypocritical when they go so far as to frame "JavaScript hipsters" as some combination of ignorant, inexperienced, and/or lazy.
I can only speak from my own experience, but I have never dealt with an Electron app that wasn't noticeably slower than other apps, to the point of standing out like a sore thumb.
Or, put another way, when I notice an app performing especially slowly, I think to myself, "that's probably an Electron app", and I'm usually right.
VR is another area where native desktop is still superior.
Then there is anything that is dealing with a lot of local data and device drivers. Video editing for example.
Development tools that work in a browser are getting better but native (or even just Java-based like IntelliJ stuff) still seems superior for now.
Stuff that doesn't use TCP, like network analysis tools, either need to be done as a desktop app or need to run a local server to point the webapp used to control them to.
I guess what I'm getting at is that if you need low-level access to the local device or if you care a lot about things like rendering performance then native is still the way to go.
Continue this thread — 1 reply
Coincidentally, I just published a blog post that touches on this from both sides: https://paulbutler.org/2020/the-webassembly-app-gap/
The client you use to interact with the stream is a web page, yes, but the actual game running in their servers is a native Linux application.
You either get lag from the network roundtrip or lag from the crap performance in a browser (or you choose to degrade the experience, e.g., by reducing graphics fidelity), but one way or another you're experiencing lag (or a compromised experience).
Ergo the same game implemented as a native app running locally is going to be better[1].
[1] At least technically. It could of course still be a rubbish game.
• Familiar UI primitives: - Controls and chrome are in the same place - Font sizes are the same across apps - Consistent icons and button shapes
• Support standard keyboard shortcuts (including obscure ones that developers re-implementing these UIs might not know about) - All the Emacs-style keybindings that work in native macOS text fields but are hit-or-miss in custom web text fields - Full keyboard access (letting me tab and use the space bar and arrow keys to interact with controls)
• And consistent, predictable responsiveness cadences - Somewhat contrived example: In Slack (browser or Electron app), switching between channels/DMs (via ⌘K) has a lag of about 0.5–1 second. If I start typing my message for that recipient during this lag, it actually gets saved as a draft in the channel that I just left and my content in the new channel gets truncated. I don’t think that kind of behavior would happen in a native macOS app, which renders UIs completely synchronously by default/in-order (so it might block the UI, but at least interactions will be in a consistent state)
And Linux isn't better. I think OSX is the only desktop OS that has an idea of what an app should look like.
Continue this thread — 3 replies
I purposefully make my FF unlike the other apps on my system. I use a couple of workarounds to prevent OS level keybinds from working in some apps. Sometimes a completely purpose made UI is better, sometimes.
In general, consistency [in desktop UI] is good, but there are good reasons to break it.
https://www.techrepublic.com/article/control-panel-and-setti...
https://www.windowscentral.com/sites/wpcentral.com/files/sty...
For a highly technical userbase, a highly bespoke UI may be defensible,even preferable, especially:
- User community is expert, highly skilled, and highly computer-literate.
- If daily-weekly time-in-environment is high. User "lives in" application.
- If lifetime time-in-environment is high. Users base career in application.
- If there's relatively little communication between users about application state, interactions, or activities. Put another way: users interact with the app, but not about the app with others (users, clients, management, techs).
- The UI avoids drastic change over time.
By contrast, reverse virtually any of these conditions and you'll want a UI that conforms closely to current standards:
- Users are inexpert, poorly computer-literate (the vast majority, see OECD computer skills study), or simply nontechnical with app.
- Time-in-environment is low. At the extreme, all users are one-time novices.
- If users must communicate with others regarding app state or tasks -- close management, team interaction, client / management interactions. All parties need a ready and clear mental model of the UI and state.
- If the UI changes drastically over time, it should do so consistently with all other major elements. (Both should change as little as possible.)
Somewhat more concretely, the absolute worst feature a UI can have is change. Users get confused, lose trust, and are burdened by obsolete knowledge. This afflicts both expert and nonexpert users, profoundly, though in somewhat different ways.
For very technical tools used principally creatively --- virtually all editors, development environments, and many reader/browser/search/analysis tools fit this description --- a highly distinctive (and customisable) interface may be appropriate for advanced users. This is a small, but generatively critical, user community. There's a requisite complexity to such tools, simplified UI comes at the cost of vastly less efficient performance.
Virtually all "weird" tools in heavy use today evolved from what were at the time of their creation, common motifs, at least within the environment of origin. Think of Unix, vi, emacs, Photoshop, Excel, and Eclipse, say.
For standard workflow, control, and transactional tools, highly standard UIs are preferred. Here, users are interacting closely with others regarding state or interactions with the interface, and clarity, consistency, and common knowledge of the UI and state changes matter. Point-of-sale systems, equipment controls, general monitors, enterprise applications, end-user/customer support tools, and the like.
Occasional-use, public use, and similar tools must be generally usable without training. Adherence to standard motifs is critically important. UIs and capabilities are generally simple.
The trade-offs:
- More expert users and more heavily-used tools can support more novel UIs.
- Less literate users, more unfamiliar tools, and greater communications about UI state and interactions, demand more standard UIs.
- Change is generally bad, but evolutionary change (within the tool) or conformant change (with the overall environment) are generally less disruptive than either sudden drastic or idiosyncratic changes.
Pithily, the cost of a product designer’s novel portfolio piece is externalized onto their captive users.
I frequently do light computing on a Surface Go. It's a delightful little device and I love it, but it is not powerful enough that I can leave gmail, Slack, and Discord open all the time.
I don't have enough RAM to run another web application but I could very easily afford a native app or two.
E-mails using claws-mail are not a problem. It generally runs fast enough until I open firefox and web stuff in general.
http://www.squirrelmail.org/
https://github.com/EionRobb/purple-discord
I'm not sure that's enough of a reason to develop a commercial app, because tightwads like me also like our stuff to be free.
All comments shown.
Couldn't load more comments. Check your connection and try again.