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.
[ Parent
| on HN ]
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?
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.