4 ms·
I find that Dart rides that middle line much nicer than typescript does, at least for now. As of Dart 3, you can now have sound null safety, and sound type safe
by chris37879 3y ago
I find that Dart rides that middle line much nicer than typescript does, at least for now. As of Dart 3, you can now have sound null safety, and sound type safety for 100% of your code, if you want. The recent addition of records also makes working with some of javascripts methods with multiple return types better, as that is one of the things dart is still missing, union types. Though, I tend to prefer dart over typescript just because of not having to deal with the node ecosystem at all.
- deleted 3y ago[deleted]
- m_0x 3y agoToo bad Dart is only used in Flutter.
- chris37879 3y agoThat’s your choice, I suppose. I use it for everything from flutter to CLI to Cloud Functions to WebUi to daemons in tiny containers.
- garganzol 3y agoAny way to use Dart with React in a .jsx way? It looks like Dart has exclusive support for Flutter, and that's it.
- deleted 3y ago[deleted]
- revskill 3y agoMan, the context of question, is how to use Dart in a Typescript/React application (because of popularity of ReactJS ecosystem, of course).
- m_0x 3y ago> That’s your choice, I suppose. Not really. For personal projects or if you're a freelancer sure. Once you work in a company/startup you can't go and implement things in whatever you like. It's way easier to convince any manager that Dart/Flutter is a good choice for a mobile app because of the tech advantages than in anything else because of the pool of available developers.
- latchkey 3y agoDo you use Dart for anything other than Flutter though? I'm a huge fan of Dart, but I don't see it getting much server usage. Like, could I deploy a Dart CloudFlare worker?
- chris37879 3y agoyes, cloud flare even has a guide on their docs if you go to the Workers > Platform > Languages section. Also, dart 3 is previewing wasm support, and could be used through a wasm worker.