by judah · 8mo ago · 0 comments
This isn't a criticism of the article, but rather a tangential observation about why so many people turn to the web instead of using native toolkits to build apps, and why so many of native toolkits feel uninspired and lacking any real innovation.
If I choose to build an app using web tech, I get:
- Universal distribution
- No download and install process
- No "please wait while we update this"
- Users can easily share my app
- Users can link to individual pages within my app
- Users get autofill for forms and passwords and credit cards
- Users can block ads
- Users can scale and zoom my content
- Users can find text on any page in my app
- No "SmartScan couldn't verify if this app is safe" because it wasn't signed with a cert.
- A clearer security model: web apps prompt the user for access to e.g. microphone, camera, or secure disk locations. Native apps can kinda do whatever they want.
Why would I give up all those things to write a native app? A knee-jerk answer is often "performance", but honestly, most web apps load faster than their native counterparts these days.
Another common answer is app store distribution, but web apps can now be published to the major app stores without Electron or other frameworks. Google Play and Microsoft Store both support PWAs, and iOS App Store supports web apps via web view.
There are some scenarios where a native app is warranted. For example, hooking into some native component or OS API; e.g. HealthKit on iOS. But for many apps, the web is good enough.
I think a lot of hatred toward web apps actually comes from the hatred toward cloud-first design. Notion feels sluggish compared to Obsidian, but is it really due to electron? Or the fact that one is cloud-first while the other is local-first?
Edit: well I just looked it up and it seems that Obsidian is electron-based too.
I think cloud-first design is natural because webapps have nowhere good to store state. On Safari, which is the only browser that matters for many web developers, everything can be deleted at any time. So if you don't want to have a horrible user experience, you have to force your users to make an account and sync their stuff to the cloud. Then, the most natural thing to do is to just have the user's frontend update when the backend updates (think old-school fully-SSR'd apps). You can do much better than that with optimistic updates but it adds a lot of complexity. The gold standard is to go fully local-first, but to really do that right requires CRDTs in most cases, which are their own rabbit hole. (That's the approach I take in my apps because i'm a perfectionist, but I get why most people wouldn't think it's worth it)
With the files API, apps could actually replicate the microsoft word experience of drafting a file and saving it to your desktop and praying that your hard drive doesn't fail, but despite offering great benefits in terms of self-custody of data it was never a great user experience for most people.
Even withou the files API, with local storage, web apps can (and some—mostly extremely casual games that are free—do!) duplicate that experience with the extra risk of your data being lost because your disk became too full or some other event causing the local storage to be cleared.
But muh 0.00001W of energy!
Correct me if I’m wrong but isn’t VSCode an Electron app? ie a webapp shipped together with a stripped down browser
I know that GitHub Codespaces open as a full VSCode editor in my browser so I always assumed it was the same code.
McDonald's is probably most popular... "food serving place" in the world.
Plenty of Electron apps expect you to do this anyway. "Apps using web tech" aren't all web sites.
> No "please wait while we update this"
Not everyone has a fast web connection.
On the flip side, plenty of programs have no reason to use a web connection at all once they're downloaded and installed.
> Users can link to individual pages within my app... Users can find text on any page in my app
How many apps out there really have "pages"?
> Users get autofill for forms and passwords and credit cards
Why does my program need this information?
> Users can block ads
Why would my program present ads?
> No "SmartScan couldn't verify if this app is safe" because it wasn't signed with a cert.
Is that supposed to be a plus? Consider the user's side, too. Also, consider that things like Google Safe Browsing exist.
> A knee-jerk answer is often "performance", but honestly, most web apps load faster than their native counterparts these days.
Care to give an example?
(It also generally comes across like you just take for granted that your users will be on mobile.)
A lot of them. Enough for me to wish I could have OS bookmarks for specific app screens.
> Why does my program need this information?
Because I as a user don’t want to copy paste sensitive information? Also, not sure what the OPs point is, you can have autofill on native apps too.
> Why would my program present ads?
Because you’re a penny counter at big tech who subsidizes their product by stealing user information?
> Is that supposed to be a plus? Consider the user's side, too. Also, consider that things like Google Safe Browsing exist.
Web has one of the most hardened sandboxes out there, just because it was an attack vector for decades. Yes, it’s a good thing - less friction.
> Care to give an example?
VSCode loads faster than Xcode. Google Sheets loads faster than Numbers. On Windows you can start VSCode and brew coffee until VS is ready to roll.
When using my program, why would the user need to supply a password or a credit card number?
Because they’re logging in to your application and then buying a thing with a credit card?
I wish I figured this out years ago. I spent significant time learning and building with Flutter, iOS native — chasing that "native feel" — only to realize that for most of what I was building, a well-crafted web app would have been not just good enough, but actually better.
A lot of that comes down to the huge community and the shear amount of documentation that exists. OTOH, nowadays you will quickly be distracted by frameworks and build systems.
IMHO the biggest hurdle is hosting, but github pages makes even that somewhat easy.
This is so off-the-mark I am skeptical of the rest of the claims in this list.
You ever thought that it’s the reverse? That native toolkits were left to rot, because it’s always the cost center (looking at you Android team, you’re a fucking disappointment), while web continued to evolve?
> - Users can block ads
Google fuckers are desperately trying to fix the “feature”.
maybe i'm doing something wrong, but from what i've noticed, the browser is usually what takes up most of my computer's resources.
also, i assumed the reasoning for using a native app was for offline use, honestly.