News for hackers. Stuff that matters.
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.