DEV Community

Discussion on: Next Stop: Flutter

Collapse
 
pojntfx profile image
Felicitas Pojtinger • Edited

Why should I use Dart, a language that no one (at least I know) knows, and a language which is not competitive on the backend (thus forcing a multi-language env), when I can simply use the free and open web (PWAs, WASM etc.) and leverage the gigantic TS/JS/React ecosystem with a single unifying language?

Collapse
 
vinceramces profile image
Vince Ramces Oliveros

Why should I use Dart, a language that no one (at least I know) knows, and a language which is not competitive on the backend.

Javascript was popular because it is the only language that is being used in the web browsers. Dart on the other hand, did not compete because it only supports on the chrome browser and nothing else. Therefore they removed the Dart VM and made dart2js library to transpile dart code to minified js.

I like PWAs to be as SPA(No native apis being triggered) for both Android and iOS. Heavy and complex apps that triggers native api features should be in native likewise.

When I heard someone says "Why Dart?", "Dart is dead, why should I use it?"
it feels like they didn't bother to learn and benchmark the capabilities of the language itself.

Dart can be in PWA too, using AngularDart

Dart has great ecosystem with rather less active community. It keeps growing internally at Google.

Collapse
 
wajahatkarim profile image
Wajahat Karim 🇵🇰

Yes, this is a valid question that PWA are a good alternative if we want to use JS ecosystem.

But the main objective of the talk was to tell which CrossPlatform mobile platform is good. So, PWA are still web apps not mobile apps compiled natively.

Regarding Dart, well its more like JavaScript and Swift/Kotlin mix. And is very understandable and getting traction and popularity day by day. So its just a matter of time.

Collapse
 
pojntfx profile image
Felicitas Pojtinger

I definitely agree with you, mobile cross platform stuff is awesome, and Flutter is nice for sure! But why would I want a mobile cross platform app when I can just use the web/PWAs? The average end user installs 0.25 apps/month here in Germany, so the "discovery" argument for proprietary distribution mechanisms such as the Play Store or the App Store doesn't count all that much anymore, you have to pay fees to release the apps, they can be censored, you have to setup a compiler toolchain & runtime (i.e. Dart VM, i guess), tooling etc. ... If we put the development of a Web Browser in Flutter aside, why would I want a native mobile app over a PWA?
(in fact, I even wrote this comment from the dev.to PWA)

Thread Thread
 
wajahatkarim profile image
Wajahat Karim 🇵🇰

Yes you are right about the facts for mobile market situation. Also mobile app discover ability is also a major issue.
But there are some things which PWAs can't solve. Such as we cannot create Uber or ride sharing kind of app in PWA or the apps with augmented reality or high usage of device hardware. That's where mobile apps usually come in.

Thread Thread
 
monfernape profile image
Usman Khalil

Well Uber does have a PWA I guess