News for hackers. Stuff that matters.
Re:Start with a Website, Not a Mobile App by endorphone on Friday January 04, 2019 @12:00PM (#18825549)
We've been hearing the same pitch for literally years. Heck, I've made some of them myself: "This is it, people! Native apps have been rendered unnecessary!"

No PWA competes with a native experience. Not performance wise, not usability wise, and ultimately for the developer not even development wise. It may still make a lot of sense, and there are a lot of arguments for web apps, but the enthusiasm in this discussion seems disconnected from reality.

Indeed, right now we're seeing a big uptick in Instant Apps on Android -- go to a webpage and it actually loads a native app -- and I fully expect the same to appear on iOS.

There is a bit of app exhaustion, though I'd say it's much more significant on Android where users have been taught that it's user beware. It certainly isn't a technical limit, though.

Re:Start with a Website, Not a Mobile App by naravara on Friday January 04, 2019 @01:37PM (#18826475)
>No PWA competes with a native experience. Not performance wise, not usability wise, and ultimately for the developer not even development wise.

How much of a usability advantage does an app for, say, IMDB offer that the regular website doesn't? Or the loyalty card apps that a lot of grocery stores and coffee shops use now?

A lot of apps on the market are functionally just wrappers put around a poorly optimized website. They'd be better off putting their efforts towards making a great experience on the mobile web instead of trend-chasing.

In the iOS environment Apple could actually help here through a simple awareness campaign. You can save website bookmarks as icons on your home screen as it is, but this functionality is little known and not easily discoverable.

Re:Start with a Website, Not a Mobile App by oftenwrong on Friday January 04, 2019 @02:18PM (#18826839)
Companies saddle their mobile web experience with excessive animations, gobs of dynamic elements, screen-hogging navigation bars/sharing buttons/overlays, poorly-implemented infinite scrolling, etc, etc... and then they conclude that mobile web sites are bad and native apps are good.

People have forgotten that you can build a website that isn't a user-hostile SPA train-wreck.

Re:Start with a Website, Not a Mobile App by xd1936 on Friday January 04, 2019 @04:36PM (#18827872)
Amen. Twitter[1] and Starbucks[2] have both built gorgeous PWAs in the last couple of years that are perfect replacements for 98% of a native app's functionality. It can be done, people!

1. https://blog.twitter.com/engineering/en_us/topics/open-sourc...

2. https://twitter.com/davidbrunelle/status/905931990444244995

Re:Start with a Website, Not a Mobile App by charleslmunger on Saturday January 05, 2019 @12:28AM (#18830088)
Twitter's mobile web site is the most unreliable site I encounter with any frequency. Fully 80% of the links I get to Twitter fail to load, telling me to try again, which only works when I fully refresh the page.

I don't know how it compares to their native app.

Re:Start with a Website, Not a Mobile App by lowercased on Friday January 04, 2019 @05:21PM (#18828265)
Done in-house, I'd bet, and that's another disconnect to overcome.

Outsourcing website and/or mobile dev to external company, the focus is often more going to be on whizbangflashy, vs sleek/slim/fast/simple, to justify whatever budget they're getting.

I do find that I end up using the mobile web client for twitter as often as i do the native client. It's not much in either case, but the mobile web client is generally 'good enough' such that if that's where I land, I don't feel a need to jump to the native client.

Re:Start with a Website, Not a Mobile App by mmmbob on Sunday January 06, 2019 @04:43AM (#18837480)
You're missing the point. A mobile app isn't for the benefit of the user, it's for the benefit of the analytics and marketing teams. They want to be able to know who's engaging with it, and spam them with notifications.
Re:Start with a Website, Not a Mobile App by untog on Friday January 04, 2019 @12:13PM (#18825673)
> ultimately for the developer not even development wise

Ehhh I'm not sold on that one, as someone who has done a lot of web dev and then transferred to doing some iOS and Android work. The languages you can work in (Swift, Kotlin) are fantastic, and the APIs and frameworks are great. But XCode and Android Studio are a hot mess and have been for years. Plus, compilation delays every time you want to do so much as run a test, waiting for app store approval before you can push out a bug fix....

IMO the developer story for native apps isn't that great. The web has a lot of wrinkles too, but coding with Typescript using hot-reloading and instant deployment of code to users has a lot going for it.

> No PWA competes with a native experience.

It does in one key area: it loads instantly. I know Android Instant Apps are out there too, but having to persuade your user to go to an app store and download your app before they can do anything is a huge lift. The web always, always wins on that front.

Re:Start with a Website, Not a Mobile App by blago on Saturday January 05, 2019 @01:32AM (#18830334)
> But XCode and Android Studio are a hot mess and have been for years

Not sure where this is coming from but Xcode has been working pretty well for most of us.

Re:Start with a Website, Not a Mobile App by swift532 on Saturday January 05, 2019 @08:47AM (#18831601)
I hear iOS devs say that, but code editing in XCode for me is very uncomfortable compared to Webstorm, Visual Studio Code or Visual Studio. There are no tabs for open files to speak of (XCode opens a new XCode for their "tabs"), the UI is very cluttered and things are quite hard to find if you don't know where they are - and it doesn't help that the UI keeps shifting around in updates, making Googling stuff harder because a lot of images of things became deprecated.
Re:Start with a Website, Not a Mobile App by JohnFen on Friday January 04, 2019 @06:59PM (#18828924)
> But XCode and Android Studio are a hot mess and have been for years

I can't speak to XCode, but I agree that Android Studio is terrible. Fortunately, you don't have to use it to develop Android apps.

Re:Start with a Website, Not a Mobile App by phs2501 on Friday January 04, 2019 @01:04PM (#18826150)
> Indeed, right now we're seeing a big uptick in Instant Apps on Android -- go to a webpage and it actually loads a native app -- and I fully expect the same to appear on iOS.

I'd never heard of this but I can guarantee I will immediately quit and never install an app that gets forced upon me via this method. This is like the terrible "Try our app!" web popups, only 10x worse.

I realize like most people on HN I'm hardly the norm when it comes to mobile users, but UGH.

Re:Start with a Website, Not a Mobile App by endorphone on Friday January 04, 2019 @01:12PM (#18826230)
Instant apps aren't installed, per se. They don't have homescreen icons, can't send notifications, access protected data, run background services, etc. However if you have an app that has a rich interface for some need, Google slices off the pertinent parts and can serve it up transparently.
Re:Start with a Website, Not a Mobile App by dec0dedab0de on Friday January 04, 2019 @01:10PM (#18826211)
I saw it for the first time last night. I think it was Vimeo. It was actually much better than the "try our app" popup, because it was android asking if i wanted to use the instant app, and when i said no it just went away.
Re:Start with a Website, Not a Mobile App by phs2501 on Friday January 04, 2019 @01:21PM (#18826307)
That's more reasonable. I wonder if these work via Firefox? Maybe that's why I've never seen them.
Re:Start with a Website, Not a Mobile App by dec0dedab0de on Friday January 04, 2019 @02:02PM (#18826693)
I normally use firefox too, maybe I accidentally opened the link in chrome last night. I don't have my phone around to test. I just remember thinking "ahh that's kind of neat" before clicking no.
Re:Start with a Website, Not a Mobile App by phs2501 on Friday January 04, 2019 @05:41PM (#18828429)
As long as it remembers no locally and just lets me use the web app forever after it's a godsend.
Re:Start with a Website, Not a Mobile App by modwilliam on Friday January 04, 2019 @04:02PM (#18827578)
They should't be available via Firefox, just chrome/google search
Re:Start with a Website, Not a Mobile App by mbesto on Friday January 04, 2019 @12:29PM (#18825817)
> but the enthusiasm in this discussion seems disconnected from reality.

This isn't the OP's point. The point is there is more friction to download new apps today so coming out with a new native experience is going to much harder to do in today's world. It doesn't mean that this is the long term strategy.

Re:Start with a Website, Not a Mobile App by endorphone on Friday January 04, 2019 @01:21PM (#18826313)
I'm speaking to this discussion, not the submitted article. Sure, start with a web app (though it really depends on the target -- if the web app yields a sub-standard interface, performance, or utility it's a dead end) with hopes of building an app when you have an established base.

However in this discussion there are a lot of people who are arguing from the perspective of a world that doesn't exist, based upon the same "this changes everything" argument we've heard every year.

Re:Start with a Website, Not a Mobile App by mbesto on Friday January 04, 2019 @03:37PM (#18827374)
> I'm speaking to this discussion, not the submitted article.

Precisely my point. That's not what the OP was saying. Per their comment: to get people to install your app just to try it out.

> based upon the same "this changes everything" argument we've heard every year.

Did we read the same comment? Where did the OP write "this changes everything"?

Re:Start with a Website, Not a Mobile App by taco_emoji on Friday January 04, 2019 @05:23PM (#18828276)
You're using OP to mean "the root-level HN comment" where @endorphone thought you meant TFA.
Re:Start with a Website, Not a Mobile App by mbesto on Friday January 04, 2019 @05:55PM (#18828537)
I am, but they're both making the same point, so it's kinda moot.
Re:Start with a Website, Not a Mobile App by tracker1 on Friday January 04, 2019 @12:53PM (#18826054)
Well, the React Native experience is very similar to React for web. So I'm not sure the developer experience is THAT far off. Also, for line of business, mostly CRUD apps a PWA is probably a better place to start. You get iOS, Android, Mac, Linux and Windows in one place with one codebase, with no install.

Frankly, I'm far less likely to install any app than I am to use a web app. In fact it pisses me off when I can't do updates from my desktop. No, it isn't a technical limit, it's more of an I don't want more crap running in the background sending notifications. I disabled both FB and Pandora notifications because they were annoying me and many users don't even know how. I'd rather not even go there to begin with.

If I use a web app that is very useful, there are times I'll see if there's a native app for mobile. If there isn't, I'm okay with that.

Right now, I'm working on an application that is web based and is for desktop use. I'm able to use react + material-ui and a few other modules and it's been going very smoothly. I can't say I've ever had a better experience with desktop app development, or mobile. ymmv.

Re:Start with a Website, Not a Mobile App by pjmlp on Friday January 04, 2019 @12:43PM (#18825949)
On the contrary.

In spite of my preference for native apps, I only got payed to deliver mobile Web and hybrid apps.

The large majority of CRUD apps don't need native features.

Also signed PWAs have access to native APIs on UWP and ChromeOS.

It is only a matter of time until the Chrome team exposes the same capability on Android.

Re:Start with a Website, Not a Mobile App by egeozcan on Friday January 04, 2019 @12:09PM (#18825635)
> (paraphrasing) No PWA competes with a native experience even development wise

I'm personally too spoiled by the React debugging experience, and I'm saying this as a developer who mainly does C#. On the other hand, I know many developers who can't stand a line of JavaScript. The answer is here a huge "it depends, really".

Re:Start with a Website, Not a Mobile App by chaostheory on Friday January 04, 2019 @12:14PM (#18825682)
For those who can't stand javascript, typescript was made for you
Re:Start with a Website, Not a Mobile App by EduardoBautista on Friday January 04, 2019 @01:38PM (#18826484)
Typescript is just a huge bandage. It doesn't change that JavaScript has horrible tooling that changes every full moon. Not to mention it still keeps many of JavaScript's horrible warts.
Re:Start with a Website, Not a Mobile App by chaostheory on Friday January 04, 2019 @02:00PM (#18826664)
When you can't avoid Javascript (which is extremely likely now), Typescript is a huge boon. Not everyone has the luxury of working solely on the backend.

Which "warts" does Typescript keep from Javascript?

Re:Start with a Website, Not a Mobile App by EduardoBautista on Friday January 04, 2019 @09:08PM (#18829442)
Lack of a decent stdlib is a huge one. I would rather opt for Clojurescript or Elm.
Re:Start with a Website, Not a Mobile App by chaostheory on Saturday January 05, 2019 @01:41AM (#18830353)
Have you recently used Javascript? I ask because it's evolved pretty fast in the last 3 years. Even the past 2 years seem like a blur to me. Before 2015 it was unusable for me for large app development. Typescript evolves just as fast since it's a superset of javascript. 2.x was when it was usable for me. With 3.x, I have even fewer complaints. imo both are improving way faster than I can complain. That said, I still can't go back to Javascript after using Typescript. With rxjs and other popular 3rd party libs, it's hard to notice any limits. I'm not in love with Javascript, but it's just hard not to work with it since it's become the franca lingua of programming. Everyone knows it because everyone probably has to deal with it sooner or later. The ecosystem is also really strong. I have yet to had re-invent any wheels, which is something that's hard to avoid when using tech with smaller communities.
Re:Start with a Website, Not a Mobile App by EduardoBautista on Monday January 07, 2019 @09:07PM (#18852452)
Just a few days ago actually, and probably will again later this week. It still lacks a decent stdlib.
Re:Start with a Website, Not a Mobile App by stephenhuey on Friday January 04, 2019 @06:13PM (#18828645)
...and for those who want even more improvement over JS than just TS, there's Dart in the Flutter world.
Re:Start with a Website, Not a Mobile App by chaostheory on Friday January 04, 2019 @06:55PM (#18828897)
Why Dart instead of Typescript? How well does it integrate with npm modules? i.e. do I have to reinvent a lot of wheels compared to using Typescript?
Re:Start with a Website, Not a Mobile App by hajile on Friday January 04, 2019 @10:01PM (#18829614)
Bigger difference than that. Flutter has you writing in high-level components that become native draw calls using Skia. There's an in-progress back-end that outputs to HTML, Canvas, and CSS paint instead of Skia. You aren't going to be using npm much at all.

https://medium.com/flutter-io/hummingbird-building-flutter-f...

If you are using Dart without flutter (eg, overReact), then you're going to use npm a bit more (though dart has better builtin libs which helps a bit on that front). There is a generator that uses typescript definition files to generate dart interopt files.

https://github.com/dart-lang/js_facade_gen

Re:Start with a Website, Not a Mobile App by fxfan on Friday January 04, 2019 @09:48PM (#18829583)
Or Scala.js. Huge stdlib (the entire jvm PLUS js) ecosystem) and no language warts.
Re:Start with a Website, Not a Mobile App by cturhan on Friday January 04, 2019 @01:39PM (#18826493)
What is the actual problem during debugging react?
Re:Start with a Website, Not a Mobile App by troygoode on Friday January 04, 2019 @12:33PM (#18825849)
React Native gives you the best of both
Re:Start with a Website, Not a Mobile App by wolco on Friday January 04, 2019 @05:41PM (#18828424)
Or the worst. You still have to install an app. It isn't native. Might be some cases where it makes sense but an spa might be easier for everyone.
Re:Start with a Website, Not a Mobile App by wpietri on Friday January 04, 2019 @01:35PM (#18826465)
I think it depends a lot on what you mean by "compete". I'm a heavy Twitter user. I now only use its PWA on Android and it's fine. I wouldn't call it perfect, but it's certainly very usable, and I suspect most non-experts would have a hard time telling that it's not a native app.

Especially for MVPs, I think they're competitive for a wide range of uses. The UX may not be as polished, but that can be more than made up for by instant availability, instant updates, lower dev costs, and faster release cycles. The ability of a new company to learn is limited by release cycle time, and I think fast, low-cost learning is a huge advantage to startups.

Re:Start with a Website, Not a Mobile App by king_magic on Friday January 04, 2019 @02:20PM (#18826867)
> No PWA competes with a native experience.

Sure they do. Consider Reddit's website (well, before the atrocious UX updates the past few months) vs. their mobile app. It work(s)/(ed) perfectly fine.

There's literally no reason to use their native app (well, other than their ridiculous, atrocious, never-ending prompts on their mobile website to use their native app).

Re:Start with a Website, Not a Mobile App by ohithereyou on Friday January 04, 2019 @02:31PM (#18826965)
Here's a tip - take any reddit URL and add '.compact' to the end. Example: https://www.reddit.com/r/all/ becomes https://www.reddit.com/r/all/.compact

This uses the original reddit mobile site. It is very fast and clean.

Re:Start with a Website, Not a Mobile App by cube00 on Friday January 04, 2019 @05:29PM (#18828325)
At least they are consistent, go to the compact site, giant banner appears:

> You've been invited to try out reddit's new mobile website! try reddit's mobile website

Re:Start with a Website, Not a Mobile App by ohithereyou on Monday January 07, 2019 @11:54AM (#18846874)
Luckily, it's easy to block with AdBlock Plus.
Re:Start with a Website, Not a Mobile App by virtualwhys on Friday January 04, 2019 @07:24PM (#18829019)
> well, other than their ridiculous, atrocious, never-ending prompts on their mobile website to use their native app

In your settings there's an option to tun this off (I agree, a truly terrible user-hostile default).

Re:Start with a Website, Not a Mobile App by int_19h on Saturday January 05, 2019 @01:53AM (#18830382)
> No PWA competes with a native experience. Not performance wise, not usability wise, and ultimately for the developer not even development wise.

This would be correct, in theory, if companies only made apps where the extra power that the app has is necessary, and would stick to websites otherwise.

In practice, this isn't true, and anyone who has ever opened any major app store knows that many popular apps in it are, in reality, just wrappers around a webview, and the only reason why they are apps at all is because the management demanded that there is an app, like all the cool kids have these days. Most apps really would be better off as just websites precisely because they don't need anything that an app gives, but often suffer from what it takes (e.g. ad-hoc navigation versus standard browser controls).

Re:Start with a Website, Not a Mobile App by Babiker on Friday January 04, 2019 @05:31PM (#18828343)
That's because Apple and Google are doing everything in their power to keep apps tied to their app stores. If they wanted to they could make progressive apps runs as smooth as native apps tomorrow by enabling better native integration, but they won't.
Re:Start with a Website, Not a Mobile App by mrep on Friday January 04, 2019 @07:43PM (#18829098)
Google makes a ton more money off of web search than their app store and they keep releasing new features that allow you to access your devices sensors so I doubt that for google.
Re:Start with a Website, Not a Mobile App by honkycat on Friday January 04, 2019 @01:13PM (#18826241)
I've been hearing the constant whining about non-native apps for years. Pack in it, you've lost.

Everyone is writing Electron and PWAs at this point. Nobody wants to train C++ developers for a minor speed boost consumers don't seem to care about. They have a full build pipeline and dozens of trained webdev engineers ready to go, why invest in a whole new product?

A LOT of people have looked at the cost/benefit of electron VS something like QT. Many have decided that the performance hit isn't worth the cost of developing the C++ build pipeline and training developers on how to build QT apps:

- Spotify

- Visual Studio Code

- Atom

- Invision

- Slack

- Mattermost

- etc.

The web tooling is actually pretty nice if you stay in your lanes. CSS / HTML / Javascript can create a really nice experience if you don't do a bunch of dumb stuff and make pragmatic decisions.

Re:Start with a Website, Not a Mobile App by gkilmain on Friday January 04, 2019 @10:08PM (#18829646)
There has been a ton of whining over the years about native vs some JS framework and I'm tired of the shit too. Now I can't speak for your QT but I can for IOS. Do you know how much easier it is to learn swift + xcode vs learning html / css / js in a framework that compiles to native code? The answer is very much.
Re:Start with a Website, Not a Mobile App by mpweiher on Friday January 04, 2019 @03:45PM (#18827432)
Wunderlist had/has native apps for all clients. One of the main reasons people LOVED the app. It's certainly not a guarantee, but if you want that final level of polish for a consumer app, native is the way to go.