You are viewing a single comment's thread from:

RE: Building a Mine Sweeper Game using Dart's Flutter Framework (Part 4, Final)

in #utopian-io6 years ago

Hey tensor, I had a question, recently I had been using a lot of typescript mainly on backend node.js. What's ur thoughts about Dart vs TypeScript, since both project are superset language of JavaScript that provides static typing.

In addition to that, recently Google had Dart support for Angular (I'm not familiar with Angular), so which language to use for using Angular

Sort:  

Dart is not actually a Superset of JavaScript like TypeScript is. Dart a full featured language that works with both AoT (Ahead of Time) compilation and JiT compilation (It has its own Virtual Machine called the DVM) and also can be used on a variety of platforms for a variety of use-cases (IoT, Mobile, Desktop, systems, games, front-end web and back-end web etc) . Its true that Dart was originally advertised as a Web first language (Google did intend to put the DVM into Chrome) but that was abandoned years ago (though there is still a Dart2Js tool).

Dart is basically the language you would get if Smalltalk and Java had a baby with JavaScript and then that baby was genetically modified with features of Erlang. Dart was also specifically written for large scale applications and it has the ability to be extremely mobile and preformant.

TypeScript is mainly a scripting language that gives you the ability to add static typing to JavaScript. This means that TypeScript mostly shares its ecosystem with JavaScript. Also, while you can use Typescript for other things outside of web development, you still run into the same issues you would find with JavaScript in those use cases.

To compare TypeScript and Dart, you would have to actually compare TypeScript to Dart's Dart2js tool. Dart itself does not have great interoperability with JavaScript so JS libraries need to either be rewritten in Dart or put into a Dart wrapper for them to work. This is why Dart has its own version of Angular which is separate from the TypeScript version.

While Dart Angular is very useful and it has been battle tested by Google for some rather large projects; TypeScript still has the edge because you can make use of any library that is already on Npm and you also get the backing of the JS community.

With all of that being said, one of the main pluses of Dart is that it is extremely easy to learn. I find that the people I teach can become productive in a few hours if they already know a language like Java or JavaScript. So yeah, ultimately you don't really have to pick one or the other since you should be able to learn Dart in a few hours if you already know TypeScript.

Btw, thank you for the complements, I am glad you've found my work to be satisfactory.

Thanks for spending time explaining, really appreciate.

Really excited about Dart, so much potential especially when google announce it being used in Fuchsia. I guess it gonna be the next hit it the programming world.

Just a question, what is final in dart 😅

Loading...

@tensor, I really appreciate your work, might check it out when I am free.

There is not much Dart tutorial out there, you really did a great job

Coin Marketplace

STEEM 0.29
TRX 0.12
JST 0.032
BTC 63724.53
ETH 3071.11
USDT 1.00
SBD 3.98