Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> (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".



For those who can't stand javascript, typescript was made for you


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.


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?


Lack of a decent stdlib is a huge one. I would rather opt for Clojurescript or Elm.


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.


Just a few days ago actually, and probably will again later this week. It still lacks a decent stdlib.


...and for those who want even more improvement over JS than just TS, there's Dart in the Flutter world.


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?


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


Or Scala.js. Huge stdlib (the entire jvm PLUS js) ecosystem) and no language warts.


What is the actual problem during debugging react?


React Native gives you the best of both


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: